Saturday, June 30, 2012

Re: advantages and disadvantages of Raw sql queries in django

On 01/07/2012 06:25 πμ, Javier Guerra Giraldez wrote:
> <snip>
> in short: an application model is _not_ an OOP view of the database;
> it's the implementation of the conceptual data objects as handled by
> the application.
>
>

All right, I see the advantages. Nice technique.
Thanks a lot.

--
--------------------------------------------------------------
Nick Apostolakis
e-mail: nickapos@oncrete.gr
Web Site: http://nick.oncrete.gr
--------------------------------------------------------------


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: SimpleListFilter filter UserProfile

In the filter, you are trying the filter User objects on timestamp field which does not exist.

In line 42 of admin.py, try filtering on "userprofile__timestamp__gte"

-Sandeep

On Thursday, June 28, 2012 1:20:03 PM UTC+5:30, yillkid wrote:
Hi all !

I want filter a field of UserProfile (field name: timestamp),

models.py:   http://dpaste.com/764723/

admin.py:   http://dpaste.com/764724/

But when I press the filter, browser show:   http://dpaste.com/764725/

--- --- --- --- --- --- --- --- --- ---

According the error message, I can get class "UserProfile",
but if I want to  filter timestamp, how should I do ?

thx :-)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/RqU1cpZr3CAJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Management form in Model Formsets

Hi,

I am using Django 1.2 and developing using Model formsets. Using JavaScript, I am allowing the user to dynamically "Add another" formset on the template, but I can't figure out what exactly I have to modify in the management forms, for all the formsets to be successfully saved.

The documentation points out to three properties in the management form - form-TOTAL_FORMS, form-INITIAL_FORMS and form-MAX_NUM_FORMS. But I don't understand, which properties I have to exactly modify and how, when a new formset is being added dynamically using JavaScript ?

Thanks :)

Regards,
Samar

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Ecs6EVDku_YJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Can someone (experienced) Migrate Cake PHP website from shared hosting to cloud hosting provider

Need to urgently transfer my website to clean Ubuntu Cloud system, Need to install Webim, LAMP, cake etc. Please quote me.
This job is urgent ... Thanks

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: Optimistic Locking in Django?

If you read over the linked discussion it's quite possible, just an issue of how disruptive it would be to the ORM APIs.

On Saturday, June 30, 2012, Dennis Lee Bieber wrote:
On Sat, 30 Jun 2012 15:24:59 -0700 (PDT), ydjango <neerashish@gmail.com>
declaimed the following in gmane.comp.python.django.user:

>
> I did google search on "optimistic locking". Most discussion are very old.
>
> Has Django added any features to support it or what are folks generally
> doing?

       Since the locking relies upon the database engine itself, Django
probably can't do anything for it -- it would require the front-end to
know about features of the engine, and that could be a significant
impact if one changes the engine later (not to mention the overhead of
looking up some feature list for each engine so it can execute different
code based on what type of locking is available).
--
       Wulfraed                 Dennis Lee Bieber         AF6VN
       wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
--
Steven

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

[android-developers] Android Documentation

Hello
How do you download the newest version of the Documentation that is in the eclipse folder?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: Optimistic Locking in Django?

I started looking into it a while back: https://code.djangoproject.com/ticket/16549

The work broke down into ensuring that the updated/deleted/matched counts were returned from the internal ORM objects. Then there was a fair amount of discussion of what the public API of the ORM could provide on top of that. It's kind of died out a bit, I'd like to get back to it and rekindle the discussion when I can find some time.
--
Steven


On Sat, Jun 30, 2012 at 5:24 PM, ydjango <neerashish@gmail.com> wrote:

I did google search on "optimistic locking". Most discussion are very old.

Has Django added any features to support it or what are folks generally doing?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/oaykVwXK58wJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: How to use NumberFormat to set maximum number of integer digit

Simply split it by dot. Take last 3 chars of first string, use formatting for second. And join again by dot

-Bakul

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jo7O_wFoSZ0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Failed to create an instance of Service via deferred binding

Hi. I'm having the same error! Could you find a solution for this?

Thanks in advance!


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

[Rails] Re: Problems with associations

Thanks a lot Hassan, I tryed with tasks.first.project and everything is
OK.

Thanks again.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

[android-developers] image show with zoom/pan

Hi,

Is there a ready component to show an image and zoom/pan it, like the one in album/gallery? I just want to show a big image and zoom in/out and pan, full screen, then if back is clicked, it goes back to my app.

tia

    guich

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android Spinner not working

I haven't done any java on it as yet because the xml spinner not working so didn't make sense do the java until i got that down....

On Thursday, June 28, 2012 9:10:25 PM UTC-7, Nevin Johnson wrote:
Hey guys can anyone tell me why my spinner is not showing working(not display properly) check the attached image

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: Query with GeoDjango

Try a double underscore between distance and lte.

_Nik

On 6/30/2012 5:18 PM, Odagi wrote:
> Hello all. I'm wondering how to resolve this problem with a
> GeoDjango.This are my models:
>
>
> from django.db import models
> from django.contrib.gis.db import models as geomodels
> from django.contrib.gis.geos import Point
> from django.contrib.gis.measure import D
>
> class Place(geomodels.Model):
> name = models.CharField(max_length=50)
> point = geomodels.PointField(null=True)
> objects = geomodels.GeoManager()
>
> def __unicode__(self):
> return u"%s the place" % self.name
>
>
> class Restaurant(models.Model):
> place = models.OneToOneField(Place, primary_key=True)
> serves_hot_dogs = models.BooleanField()
> serves_pizza = models.BooleanField()
>
> def __unicode__(self):
> return u"%s the restaurant" % self.place.name
>
>
>
> How can I get all Restaurants that serve pizza in a radio of 45km of a
> given (geolocation) point?
> I'm trying something like:
>
> pnt = Point(-34.5875015259, -58.6725006104)
> Restaurant.objects.all().filter(place__point__distance_lte=(pnt,
> D(km=45)))
>
> But it's not working:
> Join on field 'point' not permitted. Did you misspell 'distance_lte' for the lookup type?
>
> Any ideas?
> Thanks in advance.
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/eGmII8v1GMMJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Query with GeoDjango

Hello all. I'm wondering how to resolve this problem with a GeoDjango.This are my models:


from django.db import models
from django.contrib.gis.db import models as geomodels
from django.contrib.gis.geos import Point
from django.contrib.gis.measure import D

class Place(geomodels.Model):
    name = models.CharField(max_length=50)
    point = geomodels.PointField(null=True)
    objects = geomodels.GeoManager()

    def __unicode__(self):
        return u"%s the place" % self.name


class Restaurant(models.Model):
    place = models.OneToOneField(Place, primary_key=True)
    serves_hot_dogs = models.BooleanField()
    serves_pizza = models.BooleanField()

    def __unicode__(self):
        return u"%s the restaurant" % self.place.name

    

How can I get all Restaurants that serve pizza in a radio of 45km of a given (geolocation) point?
I'm trying something like:

pnt = Point(-34.5875015259, -58.6725006104)
Restaurant.objects.all().filter(place__point__distance_lte=(pnt, D(km=45)))

But it's not working:
Join on field 'point' not permitted. Did you misspell 'distance_lte' for the lookup type?

Any ideas?
Thanks in advance.




--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/eGmII8v1GMMJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

[Rails] Re: edit a collection item in _form for the parent

Could this be done with fields_for?

On Friday, 29 June 2012 15:02:52 UTC-6, sheamus wrote:
Say I have a Dog that has_may legs (In this case we don't care how many).  In the _form for Dog, I would like to assign a pre-existing let to him.  I would like to do something like this:

<%= f.collection_select :leg_1, Leg.select { |l| l.dog_id == nil }, :id, :description %>
<%= f.collection_select :leg_2, Leg.select { |l| l.dog_id == nil }, :id, :description %>

Then in my controller's create action:

@dog = Dog.new(params[:dog])
@dog.save
leg = Leg.find(params[:leg_1])
leg.dog = @dog
leg.save

The problem is that the collection_select is trying to set the leg_1 value as part of Dog, which of course does not exist. Do I need to create 'view model' for doing this?

Thanks,
~S

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/FJhqhsHfyWYJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

[Rails] Re: Problems with associations

Hello Colin, thank you for your answer..

I tryed this:

irb(main):001:0> task = Task.all
←[1m←[36mTask Load (1.0ms)←[0m ←[1mSELECT `tasks`.* FROM `tasks` ←[0m
←[1m←[35mEXPLAIN (1.0ms)←[0m EXPLAIN SELECT `tasks`.* FROM `tasks`
EXPLAIN for: SELECT `tasks`.* FROM `tasks`
+----+-------------+-------+------+---------------+------+---------+------+------+-------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows |
Extra |
+----+-------------+-------+------+---------------+------+---------+------+------+-------+
| 1 | SIMPLE | tasks | ALL | NULL | NULL | NULL | NULL | 2 |
|
+----+-------------+-------+------+---------------+------+---------+------+------+-------+
1 row in set (0.00 sec)

=> [#<Task id: 1, user_id: nil, project_id: 1, name:
"W\r<br>T\r<br>F ?\r<br>VERY\r<br...", del
eted: 0, done: 0, created_at: "2012-06-24 15:46:37", updated_at:
"2012-06-30 17:13:27">, #<Task id: 2, user_id: nil, pro
ject_id: 1, name: "Teste", deleted: 0, done: 0, created_at: "2012-06-30
17:11:27", updated_at: "2012-06-30 17:11:27">]
irb(main):002:0> task.project
NoMethodError: undefined method `project' for #<Array:0x482b068>
from (irb):2
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands/console.rb:47:in
`start'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands/console.rb:8:in
`start'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:41:in
`<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

But when I try to call task.project a error shows up, and if I put
task.id the same error is print

Thank you

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

Re: advantages and disadvantages of Raw sql queries in django

On 30/06/2012 10:58 μμ, Javier Guerra Giraldez wrote:
>
> Even when using the ORM, any complex query is a good candidate to be
> encapsulated as part of the model. Ideally, the model should expose a
> high level view of your data objects, not simply an easy to use view
> of the database.
>
>

Interesting idea, I haven't used that yet, could you give an example of
that?
Would you use a method calling the ORM that would include something like
self.objects.select_related().bla bla?

Thanks

--
--------------------------------------------------------------
Nick Apostolakis
e-mail: nickapos@oncrete.gr
Web Site: http://nick.oncrete.gr
--------------------------------------------------------------


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

mod_rewrite

I have my main site in the app folder / directory

Now I want to create a dev folder where I can work on a new site but going to site.com/dev results in Error: The requested address '/dev' was not found on this server.

How can i set the htaccess to ignore the dev folder?

Thanks

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Optimistic Locking in Django?


I did google search on "optimistic locking". Most discussion are very old.

Has Django added any features to support it or what are folks generally doing?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/oaykVwXK58wJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: [android-developers] Re: Renderscript Deprecated

On Sat, Jun 30, 2012 at 5:18 PM, Romain Guy <romainguy@android.com> wrote:
> - Renderscript Graphics has always been hardware accelerated

The point is that, according to the 4.1 release notes, we should no
longer use "Renderscript Graphics":

https://developer.android.com/about/versions/android-4.1.html#Renderscript

"Note: The experimental Renderscript graphics engine is now deprecated".

The concerns are:

1. Why were we not told that this was "experimental" at the time
Renderscript Graphics was announced? I see no evidence on the Web that
Renderscript Graphics was described as "experimental".

2. If half a subsystem is now deprecated, why is that announcement
buried in release notes, rather than being called out a bit more
visibly?

At the end of the day, Google can do whatever it wants to. Personally,
I am just trying to figure out where the communications breakdowns
occurred.

Thanks!

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Disclaimer on Google Play

When I add a link to a disclaimer in the developer console, will it be mandatory to read/agree for _all_ users, or is this feature only available in the latest version of the Play Market app and on latest Android versions? 

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?



On Saturday, June 30, 2012 3:39:12 PM UTC-5, sven wrote:
I've already gave the iframe stuff a try in the past, but unfortunately exactly the calculation of the natural width of the iframe-content was the problem.

I would definitely prefer the first option (extending WebView). But just take a look into the old (API Level 14) solution and search for "mTitleBar" or "getTitleHeight" and you will quickly recognized, that this is used in many places which are not reachable from within a derived class.

You would need to re-implement all of this in your own derivative. I'm not sure how far you can go with that, though. Maybe you just need to add your own custom view to the WebView and listen to touch events on the WebView to make it appear.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

I've already gave the iframe stuff a try in the past, but unfortunately exactly the calculation of the natural width of the iframe-content was the problem.

I would definitely prefer the first option (extending WebView). But just take a look into the old (API Level 14) solution and search for "mTitleBar" or "getTitleHeight" and you will quickly recognized, that this is used in many places which are not reachable from within a derived class.

At the moment it looks to me as if I need to create a fallback solution for API level 16 and above which will put the title and the WebView into a ScrollView. This will be the first time, that a newer android version will bring a worse user experience to my users :-(

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: advantages and disadvantages of Raw sql queries in django

On Sat, Jun 30, 2012 at 1:33 AM, Mike Dewhirst <miked@dewhirst.com.au> wrote:
> I firmly believe in using the ORM for everything until i am forced to use
> handwritten SQL.

absolutely agree


> I could also argue against custom SQL because it contains business logic and
> i prefer to keep that all in one place, ie., in models in python code.

of course, when you have to use SQL, the best place to put it is in
the models file, either on the model itself or on a custom manager.
That way, if/when you modify the database representation, you don't
have to change other parts of the code.

Even when using the ORM, any complex query is a good candidate to be
encapsulated as part of the model. Ideally, the model should expose a
high level view of your data objects, not simply an easy to use view
of the database.

--
Javier

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: [android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

> Can't you just create a layout with your title bar view first and the webview below?

This is exactly what I wanted to do in the past when I've started to create GoodNews: Intuitively I've created a ScrollView, added my title view and the WebView below. The problem with this is that the ScrollView and the WebView do not work together well. The user can either scroll vertically *or* horizontally but not both directions at once (diagonal). So if you as a user want to scroll to the bottom right corner of the view, then you need to scroll down at first, lift the finger for a moment and then scroll to the right -- not really what I as a user would expect.

Just search at stackoverflow for "[android] +webview +scrollview" and you will find quite a few of questions related to this topic...

> Or just let your title bar view hover on top of the webview and add a padding to the rendered HTML via JavaScript injection. Or you could inject a HTML-based titlebar with fixed positioning into the webview.

Tried this in the past and it worked fine for HTML which I've provided on my own, but not if I load external WebSites (I am a Google Reader client, so I *need* to load external web pages.

> I haven't seen that title bar in action, so I don't know whether I am missing something obvious here, but just by reading the API documentation for that method it sounds like you can get a simple workaround working for that.

It should behave similar to the address bar of the standard browser: If you scroll down the website, the title bar should disappear and if you scroll back to the top it should reapear. Scrolling horizonally shouldn't affect the title bar at all -- to the user it should look as if it was fixed.

This was exactly the behavior provided by the embedded title bar and if you look at the implementation then you will see that there is no possibility to implement the same just by deriving from WebView as it depends on a few private methods -- especially not in the Jelly Bean version of the WebView as it delegates all it's calls to the new ClassicWebView...

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: Completely blank screen after form submission

A blank screen suggests a fatal php error. Check your server's (not
Cake's) log. If you cannot access the log, try adding these to
bootstrap:

error_reporting(E_ALL);
ini_set('display_errors', 1);

Remember to remove them once you've found the trouble.

On Fri, Jun 29, 2012 at 3:29 PM, Shosho <shinsuio0012@gmail.com> wrote:
> In my app, for certain records, after save is clicked, it shows a completely
> blank page. The url is pointing at my add view with no id passed. The number
> it does this on is a small percentage of them. It works fine and exactly as
> I expect it too on all the rest. I have no more ideas as to what it could
> be. My add function is below. It's really weird that it would work just fine
> on 95% of them but not the rest. Maybe it's something in the data coming in?
> But i'm also using the security component, could be that?
>
> function add($id = null) {
>  $drug = $this->FrenchTranslation->Drug->read(
>    array(
>
> 'Drug.id','Drug.generic','Drug.ahl','Drug.aap','Drug.rid','Drug.oral','Drug.mw','Drug.clinical_recommendations','Drug.category','Drug.lrc','Drug.lrc2','Drug.lrc3','Drug.vd','Drug.rid_range_rounded','Drug.adultdose'
>    ),
>    $id
>  );
>  //$this->set('drug',$drug);
>  $this->set(compact('drug'));
>
>  if (!empty($this->data)) {
>                $this->FrenchTranslation->create();
>                if ($this->FrenchTranslation->save($this->data)) {
>      if(isset($this->params['form']['Next']) &&
> $this->params['form']['Next']  == 'Next'){
>        $this->next($id, $this->data['FrenchTranslation']['generic']);
>      }
>      if(isset($this->params['form']['Previous']) &&
> $this->params['form']['Previous'] == 'Previous'){
>        $this->previous($id, $this->data['FrenchTranslation']['generic']);
>      }
>      if(!isset($this->params['form']['Previous']) &&
> !isset($this->params['form']['Next'])){
>        $this->Session->setFlash(__('The french translation has been saved',
> true));
>                    //$this->redirect(array('action' =>
> 'edit',$this->data['FrenchTranslation']['id']));
>                    $this->redirect(array('action' => 'edit',$id));
>      }
>                } else {
>                        $this->Session->setFlash(__('The french translation could not be saved.
> Please, try again.', true));
>                }
>        }
>        $drugs = $this->FrenchTranslation->Drug->find('list');
>        $this->set(compact('drugs'));
> }
>
> --
> View this message in context: http://cakephp.1045679.n5.nabble.com/Completely-blank-screen-after-form-submission-tp5709166.html
> Sent from the CakePHP mailing list archive at Nabble.com.
>
> --
> Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

[Rails] undefined method `xxx_path' for #<#<Class....

when i try  /contact_mail/newi it return me error: undefined local variable or method `em' for #<#<Class:0x007fca24248858>:0x007fca21186df0>





model: contact_mail.rg
class ContactMail < ActiveRecord::Base
  attr_accessible :email, :message, :name, :subject

end

controler: contarct_mail_controller.rb
class ContactMailController < ApplicationController
 def new 
    @em=ContactMail.new
  end
  
  def create
    @em = ContactMail.new(params[:contact_mail])
    @em.save
  end
    
end


view: new.html.erb
<%= form_for(@em) do |f| %>
<div class="field">
<%= f.label :email %>
<%= f.text_field :email%><br />
<br />
</div>
<div class="actions">
<%= f.submit "wyslij" %><br />
</div>
<% end %>



when i add @em.save to def new in controller it pass but i't not the way i want to do it.
Do enyone know how can i fix it? or what is wrong with my solution? 

i had made 4 model and controllers allrady using this method and it works perfetly. 

i had add resources :contact_mail to routes. 




--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/BH5lDzwUeEAJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

[Rails] Problems with associations

Hello guys, I have two tables, tasks and projects, and each model I put:

Task.rb

class Task < ActiveRecord::Base
attr_accessible :user_id, :project_id, :name
belongs_to :project
end

Project.rb

class Project < ActiveRecord::Base
attr_accessible :name, :description
has_many :tasks
end

But when I go to my prompt and I make a SELECT with task, none project
is returned.

irb(main):001:0> Task.all
←[1m←[36mTask Load (0.0ms)←[0m ←[1mSELECT `tasks`.* FROM `tasks` ←[0m
←[1m←[35mEXPLAIN (30.0ms)←[0m EXPLAIN SELECT `tasks`.* FROM `tasks`
EXPLAIN for: SELECT `tasks`.* FROM `tasks`
+----+-------------+-------+------+---------------+------+---------+------+------+-------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows |
Extra |
+----+-------------+-------+------+---------------+------+---------+------+------+-------+
| 1 | SIMPLE | tasks | ALL | NULL | NULL | NULL | NULL | 2 |
|
+----+-------------+-------+------+---------------+------+---------+------+------+-------+
1 row in set (0.03 sec)

=> [#<Task id: 1, user_id: nil, project_id: 1, name:
"W\r<br>T\r<br>F\r<br>VERY\r<br...", del
eted: 0, done: 0, created_at: "2012-06-24 15:46:37", updated_at:
"2012-06-30 17:13:27">, #<Task id: 2, user_id: nil, pro
ject_id: 1, name: "Teste", deleted: 0, done: 0, created_at: "2012-06-30
17:11:27", updated_at: "2012-06-30 17:11:27">]

I guess the project name should come too ? right ?

What am I doing wrong ?

Thank you

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

Re: [Rails] standalone app, sort of

On Sat, Jun 30, 2012 at 8:10 AM, Scott Ribe <scott_ribe@elevated-dev.com> wrote:
> - I need to create a daemon process that runs periodically in the background on a server and creates some export files from a database.

A "daemon" process runs continuously; are you sure you don't just
want to use cron? It's made for "periodically" :-)

> - I'd like to write it in Ruby and use ActiveRecord & ERB.

If cron is an option, you could either write a standalone script, a rake
task or use a full Rails installation and `rails runner`.

FWIW,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

[Rails] Career opportunity - Ruby Developer - www.pentasia.com

Our client are seeking a talented Ruby developer to join their IT team. 

Moving to JRuby from Windows, our Client are seeking an ambitious developer who will help deliver their state-of-the-art API platfom. 

If this sounds like you then please read below for more information. 

The ideal candidate will be: 

An expert in Ruby, having a track record of solving difficult and complex problems efficiently and elegantly; 
In depth knowledge of the Ruby ecosystem; 
Can manage projects through full software life cycle; 
Can mentor and encourage junior developers; 
Can document and articule ideas clearly and is unafraid to express opinions. 

Essential requirements: 

Ruby - Sinatra/Padrino/Sequel/TorqueBox; 
Experience leadingothers; 
Passion for web development and technology; 
Experience with Javascript frameworks, JQuery etc; 
expert web stack knowledge - HTTP, CSS, REST. 

Permanent position for Eu Citizen or Visa holders. 

Location: Dublin, Ireland. 

Language: English Fluent. 

Salary: +55K euro plus benefits. 

If you are interested please send to me your resume in word format, a cover letter, salary, notice period and availability with Ref. Ruby Dev. to angelo.chirulli@pentasia.com 

Website: http://www.pentasia.com 

Thank you in advance for your time.

The client is an Equal Opportunity Employer (EOE).  

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ByvUGkH7p60J.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

[android-developers] Re: How do I set up the project in the Android site's “Managing the Activity Lifecycle” training exercise?

I just need the step-by-step procedure for getting from the *.zip file to a proper implementation in Eclipse.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Renderscript Deprecated

In the overview for the API Changes of Jelly Bean, it is mentioned:

Note: The experimental Renderscript graphics engine is now deprecated.

See

https://developer.android.com/about/versions/android-4.1.html#Renderscript

No one ever mentioned before, that it was "experimental".

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to: Free to Paid App and retain preference and db files?

Hi, yes I will consider in app purchase if that is the only option.

So am I right to say some free and paid app actually release 2 versions which Google play see it as separate app and each app have their own data directory?

On Saturday, 30 June 2012 23:34:56 UTC+8, RichardC wrote:
Have you considered using in-app-purchasing to turn off the ads and unlock the extra features?



On Saturday, June 30, 2012 10:01:11 AM UTC+1, Mystique wrote:
Hi,

I have a Ads supported app and I am planning to release a paid version without Ads and extra features.

My questions are how do I release the app so my user can purchase and use with losing the preferences and db?
Can I package it with the same name and upload into Google Play as new app or how is it been normally done?

Cheers.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: Deferred Binding with ClientBundle

Yes, Pure SVG would need an image for for IE. If you use RaphaelJs though, you can use the SVG on IE.

Do you have experience with this? How is the expected performance in IE if you have lots of small SVG icons on your page that have to be converted? 

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aIL1Luwsk9kJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

[Rails] standalone app, sort of

- I need to create a daemon process that runs periodically in the background on a server and creates some export files from a database.

- I'd like to write it in Ruby and use ActiveRecord & ERB.

- Conveniently enough, I'm actually working on an RoR app that will be deployed on this server, against the same database, within a few months. So I might as well go ahead with a full RoR install on the server--no need to pick and choose gems.

- This daemon process I want to create now really is not connected to that app, and so should live entirely outside that app's directory structure.

I think it's that last point that I don't quite know what to do about. My standalone daemon would, I guess, require ActiveXXX and a model.rb file (or 2 or 3). Or perhaps no model file, just define the model classes inline. (This daemon could easily fit in a single source file; the model files will basically be empty.)

Thoughts?

--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice




--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

need a sample database

i want a sample database  like sakila or northwind with cakephp conventions
is there is any  ?
thanks in advance

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: advantages and disadvantages of Raw sql queries in django

On 30/06/2012 07:36 πμ, vijay shanker wrote:
> hi
> i want to know pros and cons associated with running raw sql queries
> over django's ORM .
> googled it out but couldn find many useful links.
>
>
At some point in the future you may find yourself in a position when you
will need to change the underlying DB engine.
In these cases ORM is a life saver.

This scenario is not far-fetched it is very common actually. I use
sqlite to develop my app, but in the production server I use mysql.
The code is the same, I have to change only 2 lines in settings.py
This makes development very easy and very portable.
I can reproduce my development environment in 10mins (with the use of
pip and virtualenv of course) and start working in a new machine with
minimum hassle.

--
--------------------------------------------------------------
Nick Apostolakis
e-mail: nickapos@oncrete.gr
Web Site: http://nick.oncrete.gr
--------------------------------------------------------------


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Date Serialization

Hi!

I need to parse serialized java.util.Date values in Python. Where can I find information on the timestamp that represents date and time in the serialized format?

Currently, I add some constant to the raw value and divide it by 1000, which brings me to a Unix timestamp. However, this constant needs to be changed sometimes.

Daniel

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/6vjzTiNDiHYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

What kind of authorization I should use for my Django facebook app

I am building a facebook application using Django where I am using Google Data API (Blogger API) to read website's content.

So, what kind of authorization I should use in Google Data API to read the website.. To be specific, what kind of OAuth authorization I should use and how? 
(I want my users to use my app without any login credentials)..

Can anyone help me on it?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/dwjcrkvB5xIJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: [Rails] find_by_sql and join

I almost use normal ActiveRecord methods.
I use find_by_sql for complected sql.

2012年6月30日土曜日 18時17分48秒 UTC+9 Colin Law:
On 30 June 2012 10:08, tanizawa <kazuyat7175@gmail.com> wrote:
> hi
> I amd tanizawa.
>
> I had problem.
> I can not get main.name value from below sql.
>   "find_by_sql 'select main.id,main.name,sub.name from main left join sub on
> sub.id = main.id'"
> Please teach me how to get borth name value.

My first question would be why are you using find_by_sql?  Why not use
the normal rails ActiveRecord methods.  See
http://guides.rubyonrails.org/active_record_querying.html
and
http://guides.rubyonrails.org/association_basics.html

I assume you have already worked through the getting started guide and
some tutorials such as railstutorial.org which is free to use online.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Y0cbAv-VbxAJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

[android-developers] Re: GPRS connection problem in Android 2.3

On Jun 29, 8:35 am, Siva kumar <sivakumar...@gmail.com> wrote:

> I got s3c6410 Arm development Board. It has been ported with Android 2.3.
> This board has SIM300 GSM modem.When i tried to connect to internet through
> GPRS i found APN was missing.

This sounds more appropriate for android-porting, as its an issue with
the platform on non-standard hardware.

It does not directly concern SDK application development, which is the
topic of this group.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[Rails] Re: Rspec - want to NOT clear database between tests

before(:all) seems well-suited to this problem. It creates data that persists across transactions. 

https://www.relishapp.com/rspec/rspec-rails/docs/transactions


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/7CQaUNZU_RIJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

Re: [android-developers] how to add image buttons in gridview in android



On Tue, Jun 26, 2012 at 11:23 AM, nanda <tgraghunandangupta@gmail.com> wrote:
hi

I am new to this android and i need to add image buttons in grid view by parsing an xml.how to do this??


Do the same as you have done in case of imageview, just replace it with imagebutton
You don't have to put any more effort.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] ContentValues issue




rideDate never gets assigned and the other values seem to not be assigned in order ie; distance may end up being the second element, when I would have expected rideDate to be the first and distance to be the fourth.
This is how I use the newRideValues collection.
new BikingLogsContentProvider().insert(CONTENT_URI, newRideValues);
Any ideas and suggestions would be very welcome.



Sequence of contentValues doesn't matter. The thing which matters here is the pair of key and value.
The value will always be inserted in the same column, with which you have associated it.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Battery usage per app

On Sat, Jun 30, 2012 at 1:29 AM, Kumar Rangarajan
<kumar.rangarajan@gmail.com> wrote:
> That is true. Its still the same. But then as a developer (assuming u have
> the N1), would'nt getting power consumption details on one model still give
> u a fair and reasonably consistent view of how it would perform on most
> models ? If the intent is to understand the consumption pattern of ones
> application, this is reasonably good enough right ?

I certainly would not make that assumption. This gets to the heart of
Ms. Hackborn's comment: per-component power measurement is tricky
business without low-level hardware data collection (e.g., Qualcomm
MDP). It's all just guesswork. Chipsets vary in power consumption,
sometimes fairly widely, let alone differences in CPU and GPU.

> Looks like the Trepn profiler is currently being redesigned and is not
> available
> (https://developer.qualcomm.com/mobile-development/development-devices/trepn-profiler),
> but then as u mentioned it needs to be used with their expensive MDP
> devices.

That's odd. Trepn Profiler is built into the MDP firmware -- it isn't
something you run on the development desktop or something. But, yes,
the MDP is crazy expensive.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers]

Yes. And to tell you that, we need the LogCat from the crash and the appropriate code to go along with it.

Thanks

On Sat, Jun 30, 2012 at 11:25 AM, vaibs malviya <vaibs.malviya25@gmail.com> wrote:
my question is not that i just want to know why tabhost not work in 4.0.


On Fri, Jun 29, 2012 at 8:07 PM, Justin Anderson <magouyaware@gmail.com> wrote:
To find the cause of your force close look at the logcat output...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware



On Fri, Jun 29, 2012 at 7:40 AM, vaibs malviya <vaibs.malviya25@gmail.com> wrote:
it is possible to design a tabhost and it work for android 2.2 and also working for 4.0.
plz tell me if any one know 
because i develop tabhost in 2.2 and it run successfully on android 2.2
but when my apps lunch on android 4.0 so tabhost not display and my apps force to close.  

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--
Raghav Sood
Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

Hi all,

some of my users have already updated their Galaxy Nexus to Jelly Bean and these users are no longer able to use my app (GoodNews news reader and podcast player), as it uses the WebView.setEmbeddedTitleBar() method to inject the article title into the article view, so that it scrolls in a senseful manner. On Jelly Bean this beahviour produces the following exception:

java.lang.NoSuchMethodException: setEmbeddedTitleBar [class android.view.View]

I know that this method hasn't been a public API call (except for a short time in android 3.0), but it worked well since android 2. Unfortunately the Jelly Bean source code isn't available now, so that I can only guess.

Can someone cofirm that this method is gone? Any ideas for alternatives?

Thanks a lot

Sven

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [Google Maps API v2] Re: Adding an open goggle polyline to xcode map

On 30 June 2012 10:42, Fabrizio Bartolomucci <fbartolom@gmail.com> wrote:
> Thanks Larry,
> actually that is quite strange given the coordinates seem to move on the same direction while the drawn polyline seem to also have a reverse path. I also tried to just print the first 100 dots, but they already featured that odd behavior.
> As for the origin, the main points, in effect corresponding to the threading of the return path, are the positions of the bus stops of a bus line, and the points in between are the ones returned by google to connect them through roads. Could you point me to the points producing that weird effect and/or to a web site where I may submit my points and have them drawn on a map without having to mangle with the iOS app?

I checked the first one
2012-06-29 17:16:27.947 inArrivo[6293:707] 41.702019, 12.345350

which also appears slightly further down:
2012-06-29 17:16:27.977 inArrivo[6293:707] 41.702019, 12.345350

so it's definitely the data. You could try and find a duplicate of
every row like I did, but that might take some time. It's probably the
only way though: can you load the points into a database to help you?

I don't know of a site where you can submit a list of points though,
other than one where they are encoded first, which isn't going to help
find duplicate points.

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

Re: reordering of column in celltable



On Saturday, June 30, 2012 11:17:03 AM UTC+2, tong123123 wrote:
If  the celltable has something like
addColumn(Column<T,?> col, int insertIndex)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/maKwdQIqjsYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

[android-developers] How to: Free to Paid App and retain preference and db files?

Hi,

I have a Ads supported app and I am planning to release a paid version without Ads and extra features.

My questions are how do I release the app so my user can purchase and use with losing the preferences and db?
Can I package it with the same name and upload into Google Play as new app or how is it been normally done?

Cheers.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Friday, June 29, 2012

Re: [android-developers] how to add listview in to sliding drawer??

<SlidingDrawer  	xmlns:android="http://schemas.android.com/apk/res/android"  	android:background="#FF4444CC"  	android:id="@+id/drawer"  	android:layout_width="fill_parent"  	android:layout_height="fill_parent"  	android:handle="@+id/handle"  	android:content="@+id/content">  	<ImageView  		android:contentDescription="@string/normal_tray"  		android:id="@id/handle"  		android:layout_width="wrap_content"  		android:layout_height="wrap_content"  		android:src="@drawable/tray_handle_normal"/>  	<listview/>  </SlidingDrawer>

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Question about this group itself

On Thu, Jun 28, 2012 at 10:08 AM, Francisco M. Marzoa Alonso <fmmarzoa@gmail.com> wrote:
If someone has a clue on how to solve this...

Create a filter in Gmail to have anything sent from you and addressed to the Group get stamped with a specific label.
This will appear as a folder in TB.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

advantages and disadvantages of Raw sql queries in django

hi
i want to know pros and cons associated with running raw sql queries
over django's ORM .
googled it out but couldn find many useful links.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: Is there a lighter weight alternative to requestAction?


However, suppose the content editors want to write an article about farmers markets and they want to display a list of farmers markets in the local area, we can tell them to embed something like {/organizations/list/tag:farmers-markets/radius:10/count:5} in the content. Or somewhere else they want a list of music events, then we would tell them to embed {/events/list/tag:music/radius:75/count:10}. So by passing that URL to requestAction, it will call the appropriate controller and action and return the rendered content. It keeps the code simple and modular, in the spirit of MVC.

What I am suggesting is slightly different... instead of having one requestAction for each of the modules you need included, I suggest to have only one requestAction for all the modules on the page. This would cut the overhead of rebuilding the Cake API for every module on the page.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: [Rails] jquery not working in production?



On Wednesday, June 27, 2012 12:54:41 PM UTC-4, Ylan wrote:
On Jun 27, 2012, at 9:42 AM, Vell wrote:

>
> The error you are getting means that, when running the rake task the jquery gem is not available. There are a few ways this can happen: Did you add the jquery gem only in the development group? In the asset group?
>
> jquery rails is in the assets group of my gemfile
>  
> Did you remember to run bundle install after adding the gem?
>
> Yes I did run bundle install after adding the gym.
>  
> What bundler groups are available in which environments (look into your application.rb file).
>
> I am not sure I am looking in the right place in my application.rb file but here is what I saw at the top of the file:
>
> if defined?(Bundler)
>   # If you precompile assets before deploying to production, use this line
>   Bundler.require(*Rails.groups(:assets => %w(development test)))
>   # If you want your assets lazily compiled in production, use this line
>   # Bundler.require(:default, :assets, Rails.env)
> end
>
> If answering the above questions doesn't lead you to find the problem, post back your complete Gemfile and we will go from there.
>
> Here is what my gemfile looks like:
>
[snip]

I don't see any obvious errors there, and I am assuming that you already checked line 13 of application.js for correctness. At this point, I am out of ideas on where the problem is. If I where you, I would start a blank rails application in which you *can* precompile the assets. Then starts looking for potential differences between the brand new app and yours.

So I did end up resolving this issue. There were 2 issues.

1. jquery-rails doesn't like being in the assets block of my Gemfile. Once I took it out of that block I was able to compile in production without any error. I happened to be passing through railscast and saw that one of Ryan Bates examples had that particular line under the assets block.

2. I had an error in one of my .js files so removed the file and everything seems to be working as expected. I will see if I can figure out what is going on with that .js file at a later date.

Thanks for the help in trying to get me to solve this issue.

Sorry, I can't be of more help.

--
Ylan


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/PrE1Kr1OuyIJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.


Real Estate