Tuesday, May 31, 2011

[android-developers] Is it possible to lock screen without turning off display

I had came across several apps

Lock Screen Widget - Lock screen and turn off display by tapping on
screen button. User will need to press hardware power button to make
the screen visible again.

Tap Tap App - Lock screen and turn off display by tapping on screen
button. Proximity sensor still activate after screen turned off. User
can double tab across proximity sensor to make the screen visible
again.

I was wondering, is it possible for the following app to be developed,
without using any unofficial API from Android SDK

To lock a screen
1. Press a on screen button to lock the screen.
2. The screen remains visible, but get much less bright to preserve
power.

To unlock a screen
1. Slide the touch screen to unlock.
2. Brightness of the screen back to normal.

So far, from my observation is that, to lock the screen, the screen
must be turned off.

Is there any way we can lock screen without turning off display?

--
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: Plot quadratic equation graph

http://developer.android.com/reference/android/graphics/Path.html

rCubicTo, rQuadTo and other methods provide interpolated curves.

On May 29, 2:50 am, SamuelXiao <foolsmart2...@gmail.com> wrote:
> Hi Webb,
>
> Could you explain in more details please? I studied the Path class but
> from other examples, it seems path cannot generate smoothed lines....
>
> Thanks.
>
> On May 24, 10:27 am, Peter Webb <r.peter.w...@gmail.com> wrote:> You can draw lines using canvas.drawline.
>
> > You can make these smoothed lines by specifying your points in a Path
> > class.
>
> > Once you load your points in the Path array, it is a couple of lines
> > of code to draw it with the Canvas class.
>
> > If this is all you want to do, it doesn't need any third party
> > libaries.
>
> > On May 22, 3:12 am, SamuelXiao <foolsmart2...@gmail.com> wrote:
>
> > > Hi all,
>
> > > I am a newbie and writing an app which just needs to plot the
> > >quadraticequation graph, that is, y=ax^2+bx+c. Now my problem is
> > > about how to plot the graph. I want to make the graph has the effect
> > > like that:http://www.appbrain.com/app/math-functions-drawing/siriosoft.math.fun...
> > > (the right-hand side image).
>
> > > Does anyone know how to make it? I tried to usehttp://w2davids.wordpress.com/creating-charts-with-droidcharts-for-an...
> > > this sample but found the line does not display as smooth as expected
> > > and it doesn't display negative side (it just show the positive side,
> > > e.g. x=0,1,2....).
>
> > > Any help would be highly appreciated.

--
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 call setTextContent in android

Same why as on any Java platform:

object.setTextContent(args...)

On Jun 1, 1:25 pm, HariRam <hariram1...@gmail.com> wrote:
> I want to re write xml file using jdom, i got some example in goodle, they
> used setTextContent to append value in xml tag. but android is not
> supporting node.setTextContent. instead of this what is the key word for
> accessing setTextContent. if anyone did this issue pls let me know.
> --
> Thanks and
> Regards
> Hariram

--
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] How to call setTextContent in android


I want to re write xml file using jdom, i got some example in goodle, they used setTextContent to append value in xml tag. but android is not supporting node.setTextContent. instead of this what is the key word for accessing setTextContent. if anyone did this issue pls let me know.
--
Thanks and
Regards
Hariram

--
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

creating war

How to create a war out of GWT Web application project?

--
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.

Re: [Lovers India] Cute Morning !!!

On 6/1/11, dream ali <dreamali2008@gmail.com> wrote:
> - <http://groups.google.com/group/AbuSamirSami>
>
> [image: www.FunAndFunOnly.net] <http://groups.google.com/group/AbuSamirSami>
>
> [image: www.FunAndFunOnly.net][image: www.FunAndFunOnly.net][image:
> www.FunAndFunOnly.net][image: www.FunAndFunOnly.net][image:
> www.FunAndFunOnly.net][image: www.FunAndFunOnly.net][image:
> www.FunAndFunOnly.net][image:
> www.FunAndFunOnly.net]<http://groups.google.com/group/AbuSamirSami>
>
> <http://groups.google.com/group/AbuSamirSami>
>
> [image: www.FunAndFunOnly.net][image: www.FunAndFunOnly.net][image:
> www.FunAndFunOnly.net][image:
> www.FunAndFunOnly.net]<http://groups.google.com/group/AbuSamirSami>
>
> [image: www.FunAndFunOnly.net] <http://groups.google.com/group/AbuSamirSami>
>
> <http://groups.google.com/group/AbuSamirSami>
>
> *The Beauty of Life does not depend on how happy you are…
> <http://groups.google.com/group/AbuSamirSami>*
>
> *But how happy others can be…Because of You!!!
> <http://groups.google.com/group/AbuSamirSami>*
>
>
> [image: www.FunAndFunOnly.net][image: www.FunAndFunOnly.net][image:
> www.FunAndFunOnly.net][image: www.FunAndFunOnly.net][image:
> www.FunAndFunOnly.net][image: www.FunAndFunOnly.net]
> [image: www.FunAndFunOnly.net][image: www.FunAndFunOnly.net] [image:
> www.FunAndFunOnly.net][image: www.FunAndFunOnly.net][image:
> www.FunAndFunOnly.net] <http://groups.google.com/group/AbuSamirSami>
>
> <http://groups.google.com/group/AbuSamirSami>
>
> <http://groups.google.com/group/AbuSamirSami>
>
> <http://groups.google.com/group/AbuSamirSami>
>
> <http://groups.google.com/group/AbuSamirSami>
>
>
> <http://groups.google.com/group/AbuSamirSami><http://groups.google.com/group/AbuSamirSami>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Lovers India" group.
> To post to this group, send email to loversindia@googlegroups.com
> To unsubscribe from this group, send email to
> loversindia+unsubscribe@googlegroups.com
> http://groups.google.co.in/group/loversindia
>

--
You received this message because you are subscribed to the Google
Groups "Lovers India" group.
To post to this group, send email to loversindia@googlegroups.com
To unsubscribe from this group, send email to
loversindia+unsubscribe@googlegroups.com
http://groups.google.co.in/group/loversindia

Re: [android-developers] Re: JSON OR SOAP ?

I see. We tried SOAP long time ago, and back then, it really wasn't any use for us. Management was after it for having a cool new technology to sell our product but we ended more or less to use plain Sockets at the end. But as said, just wanted to hear your opinion. SOAP is something I never really took the trouble to learn it and understand its possibilities. So hey, keep up the good work and hope to catch you here more frequently.

On May 30, 2011, at 4:16 PM, DanH wrote:
> SOAP has high-level functions that JSON doesn't (over and above the
> simple protocol level differences). Not really necessary for simple
> database queries and the like, but useful for more sophisticated
> stuff. (Disclaimer -- I've never actually used SOAP -- it's always
> been too complex for my uses.)
>
> Certainly when faced with the simple choice between JSON and XML, JSON
> is the right choice 9 times out of 10.
>
> On May 30, 8:02 am, harism <har...@gmail.com> wrote:
>> Hi Dan,
>>
>> I was introduced to JSON only very recently and since you seem to
>> understand the difference between JSON and SOAP much better than I do,
>> I'm wondering is there really need for both? I mean JSON was very
>> flexible and easy to use. Only thing I can come up with is the lack of
>> binary data transferring, otherwise I preferred JSON for database
>> queries.
>>
>> --
>> H
>>
>> On Mon, May 30, 2011 at 3:46 PM, DanH <danhi...@ieee.org> wrote:
>>> Some web services may give you the choice between "SOAP" and "JSON"
>>> remote APIs. In such a case, whereas SOAP defines much of the
>>> structure of requests and responses, and the conceptual protocols
>>> involved, JSON (by itself) does not (it only defines the basic data
>>> format), so additional info is required from the designers of the
>>> service, and, likely, additional code will have to be written on your
>>> side to handle these things.
>>
>>> When given a choice on an existing service, the choice would depend on
>>> how complex your queries are, and, to an extent, on how well-designed
>>> the ad-hoc JSON protocols are. For simple queries on a well-designed
>>> site you'd likely end up writing less code with JSON, but for more
>>> complex operations, or if the JSON protocols are not well-defined, it
>>> might be better to use SOAP, if the added overhead doesn't slow things
>>> down too much.
>>
>>> On May 29, 10:15 pm, Migazan <eni...@gmail.com> wrote:
>>>> What better way to consume web services on android JSON or SOAP?
>>
>>> --
>>> 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

Re: Does django 1.3 has a ubuntu deb package released!

I used:

sudo apt-get install python-pip
sudo pip install django


On Apr 29, 7:29 pm, Korobase <boyee...@gmail.com> wrote:
> Does django 1.3 has a ubuntu deb package released !
> I have googled but get none,Any one have done this?
> Thanks.
>
> --

--
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] Re: Very puzzling crash report from user

I don't know if the Sense UI offers a choice of colors, but if it
does, it's buggy.

On May 31, 8:48 pm, andrew_esh <andrew.c....@gmail.com> wrote:
> Is it possible that the problem is not the device, but that the user
> is the only one who has selected a color scheme that requires a color
> your application doesn't have access to? Perhaps is personal settings
> cause your application to try to guess at a certain PrimaryInverse
> color that would fit the scheme, but isn't actually available in the
> resources.

--
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: Model 'Child' is inherited from 'Parent', trying to filter to get only Child results with Parent.objects.filter(...)

Shall I report the inability of using
Parent.objects.filter(child__isnull=False) as a bug?

--
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: [Google Maps API v2] Re: how to do routing in the gmaps API?

ok thx

On Wed, Jun 1, 2011 at 9:45 AM, Grok Lobster <discgolfmaps@gmail.com> wrote:
If you are just starting on your project, you should consider using v3
of the API.

http://groups.google.com/group/google-maps-js-api-v3/topics

On May 30, 6:27 am, Abre <abrahammikh...@gmail.com> wrote:
> hy I'm abraham,
>
> I have to do the routing with the gmaps API. whether it can be edited
> in JavaScript? Is there someone who can help me? thanks. sorry my
> english is not good

--
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.


--
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.

[Google Maps API v2] Re: how to do routing in the gmaps API?

If you are just starting on your project, you should consider using v3
of the API.

http://groups.google.com/group/google-maps-js-api-v3/topics

On May 30, 6:27 am, Abre <abrahammikh...@gmail.com> wrote:
> hy I'm abraham,
>
> I have to do the routing with the gmaps API. whether it can be edited
> in JavaScript? Is there someone who can help me? thanks. sorry my
> english is not good

--
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.

[Rails] V2.3.5 -> V3.0.7 problem. Page state of select list not being preserved

This works find on 2.3.5. I have a form with a select list. Selecting
a value (it's a search type), typing in a text value into a text
field, then submitting the form (which causes a an SQL search and a
redispay of the initial page with the selected records.

2.3.5 preserved the values of the select list across invocations.
3.0.7 resets the selected value of the list to #0.

??

--
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.

[Google Maps API v2] Google maps API works on local and not in production env.

Hi,

I have designed google maps API for colleges and it works in http://localhost
but doesn't work when I FTP it to public server. I added the key too
and it still doesn't work. Example link is
http://www.writegmat.com/moredetails.php?moredetails=Harvard+Business+School%2C+Harvard+University&collegeid=1035.
Any help is greatly appreciated

Thanks,
Jagan

--
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: Best practise? Creating a detailed data report from different linked models?

Michael,

You could certainly have a Reports controller. The expectation would
be that it is operating on the Report model. This seems pretty
unlikely given the information so far. More likely you are wanting a
report on data in some other model (like Project or Customer or ...)
and it's related models.

Starting with the assumption that you want to generate reports on the
model Project, you would want a report action in your Projects
controller. A simple example would be this:

function report() {
if(!empty($this->data)) {
$report = $this->Project->find('all', array('conditions'=>'your
conditions', 'contain'=>'fields you want'));
$this->set('report', $report);
}
}

In the folder app/views/projects/ you would store your file report.ctp
This file would output a form so the user can control and modify
reports. Also have this file output a formatted report if data is
available to do so. User the Form Helper to generate the form on your
page (http://book.cakephp.org/view/1383/Form).

Given this setup the user would get to the page at http://yoursite.com/projects/report

The report action in your Project controller looks to see if it was
being provided with posted data. On the first visit there would be
none so the logic would just fall out the bottom of the action and
report.ctp is rendered with only the form displayed. The user fills
the form, submits the data back to projects/report and this time the
if() is satisfied, the find() is done and data passed to the view in
$report. Now the page shows the form AND the report!

One action, one view, sweet!

Your various models would be designed with hasMany, belongsTo,
hasAndBelongsToMany, etc. as appropriate. Probably you would also want
your models to use the Containable behavior (http://book.cakephp.org/
view/1323/Containable
) since you imply there is a lot of linking
involved.

I think you're fighting against the framework a bit. To become more
familiar with where to store your files and how to name things, look
these sections over again:
http://book.cakephp.org/view/899/CakePHP-Folder-Structure
http://book.cakephp.org/view/901/CakePHP-Conventions

Regards,
Don

On May 31, 1:19 pm, mivogtGermanyLU <miv...@mivogt.net> wrote:
> Don,
>
> yes I need a form to offer the user a way to select the criteria.
>
> As the SQL is a bit more complex, the use of find will not be my way.
> I know it is a dirty way of using cake but a long sqlquery-string
> works just better for me and offers me a nice result so far without
> learning the complex find (in my case I am using nearly all my models
> linked with each other)
>
> I am not sure about naming files and functions this for and placing
> them in the right directory.
>
> Is it ok to create a "reports_controller.php" containing an action
> "CreateReport($id,$date)" and 2 views "selectDataSet.ctp",
> "showReport.ctp"
>
> .. pleas feel free to correct my naming as it will not be within the
> convention so far ;)
>
> TIA
>
> michael
>
> On 31 Mai, 20:20, dreamingmind <dreamingmin...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Michael,
>
> > I'm not sure I see what the problem is. Your link/button can certainly
> > pass any search parameters you want in to your action. It sounds like
> > you might be planning to offer a small form for the user to choose
> > search params? The Form Helper will let you put all that together and
> > the data will come back to you in $this->data in your action (http://
> > book.cakephp.org/view/1383/Form). The action can make use of the
> > parameters to build a $this->yourModel->find() call. The returned data
> > will be be passed along to the view because actions by default render
> > their associated views. All pretty standard stuff unless I'm
> > misreading your message.
>
> > If you're really planning on writing that sql by hand, you might want
> > to review thishttp://book.cakephp.org/view/1017/Retrieving-Your-Data
>
> > Regards,
> > Don
>
> > On May 31, 10:28 am, mivogtGermanyLU <miv...@mivogt.net> wrote:
>
> > > Hi there,
>
> > > my app has several models with defined relations.
> > > Entering Data works fine also all the CRUD stuff is fine.
>
> > > Now I need to collect data from the database ostly leftjoined and
> > > limited and sorted by some definitions... so far as first step I made
> > > me an SQL statement trying insidephpmyadminand it works fine.
>
> > > To get it more comfortable I would like to have a view offering to set
> > > the data-limiters.
> > > In my case it will be a month/year datafield and the id of one model
> > > all the other stuff is linked somehow.
>
> > > I am not sure about how to go on with this and would be happy to get a
> > > helping comment...
>
> > > I guess I will need a SelectWhatToReport-View to select month/year/
> > > model_id
> > > passing this to a controller-action CreateReport($month,$year,
> > > $model_id)
>
> > > in controller I might add the new action
> > > CreateReport($month,$year, $model_id)
> > > {sql='select ... where .. $month .. ,$year, .. $model_id'
> > > // . creating sql result array to be passed to a view
>
> > > }
>
> > > not sure about how to call a 2nd view from controller to display the
> > > result from SqlResultArray using some while statements ...
>
> > > ok maybe I better rewrite in short sentences what I want to know/need
> > > to do:
> > > - need to get a view offering to choose an entry of a model from
> > > database (sems to be easy I hope)
> > > - passing this selectioncriteria to controller/action (hopefully just
> > > by pressing a button)
> > > - calling a view from controller side to display the result (sql
> > > array)
>
> > > Thanks in advance
>
> > > Michael

--
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

[android-developers] Looking for Sunspider Benchmark Visualization

Hi

I am looking for Sunspider Benchmark Visualization (javascript
benchmark) what was used in google-android-froyo release demo
Does anyone knows where can I use this benchmark test?

You can find it from http://www.youtube.com/watch?v=yAZYSVr2Bhc (at
2:08)

--
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] calling render with query string

Hi all,

In one of my create action in the controller, I am catching a error
and trying to show errors on the same page. It was all good when I
called render action => 'new'. However, I also wanted to append a
query string for consistence purposes. How do I do that with render?
For now, I can only call redirect_to and put the error in the flash
variable which doesn't seems to be as clean of a solution.

Thanks in advance.

--
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.

Re: Is there an HTML editor that's Django-aware

On Tue, 2011-05-31 at 14:26 +0100, Tom Evans wrote:
> > Where do you think such information should live? That is, at what
> > point in your process of learning Django would information about
> > editors have been helpful? Somewhere in the tutorial, or after?
> > Before?
> >
> > Thanks,
> >
> > Jacob
> >
>
> The wording on this should be very careful. The default answer to
> 'what editor should I use to develop with Django' should be 'the one
> that you know how to use and are comfortable using'.

there is this page:
https://code.djangoproject.com/wiki/Emacs

I would suggest expanding this to include other editors and putting a
link to it in the docs - somewhere near the links to learning python.
--
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

--
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: Does django 1.3 has a ubuntu deb package released!

In Ubuntu 10.04 repository stlll 1.1 version. =/

2011/5/31 Tobias Quinn <tobias.quinn@gmail.com>
You can always install the debian package from:

http://packages.debian.org/wheezy/python-django

which seems to work fine...

On Apr 30, 3:29 am, Korobase <boyee...@gmail.com> wrote:
> Does django 1.3 has a ubuntu deb package released !
> I have googled but get none,Any one have done this?
> Thanks.
>
> --

--
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.


--
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: [Rails] trying to get z-index to work - CSS styling with RJS

On Tue, May 31, 2011 at 5:48 PM, Walter Davis <waltd@wdstudio.com> wrote:
>
> On May 31, 2011, at 6:32 PM, Bill Walton wrote:
>
>>  I believe most current browsers
>> will give precedence to the stylesheet over inline styling.
>
> Sorry, I disagree with this. The stylesheet is given the same priority as
> ever, in keeping with the idea of "weight" inherent to the cascade. The
> closer a declaration is to the thing that it governs, the more authoritative
> it is taken to be.


I stand corrected. Thanks.

Best regards,
Bill

--
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.

Re: Auditing Record Changes in All Admin Tables

Moved it to admin.py but it ignores the auto_now parameters (leaving
timestamps blank) and doesn't populate the created_by/updated_by
fields either:

class AuditAdmin(admin.ModelAdmin):
created = models.DateTimeField(auto_now_add=True)
created_by = models.CharField(blank=True,max_length=20)
updated = models.DateTimeField(auto_now=True)
updated_by = models.CharField(blank=True,max_length=20)
def save_model(self, request, obj, form, change):
if change:
obj.updated_by = request.user
else:
obj.created_by = request.user
obj.save()

class Entity1Admin(AuditAdmin):
inlines = (JoinTableInline,)

admin.site.register(Entity1,Entity1Admin)

---------------------------------
I inserted a sys.exit() line to dump request.user, and it has the
correct value, but it's not getting pushed to the database record.

Thanks very much for your help, do you have other ideas?

--
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.

[Rails] Re: trying to get z-index to work - CSS styling with RJS

I tried this which doesn't seem to do anything either:
page[k].set_style :z_index => 20


I believe that the following syntax is valid:
page[k].set_style :'z-index' => 20

I tried this:

C:\Users\Laurence>irb
irb(main):001:0>
irb(main):002:0*
irb(main):003:0* x = :'z-index'
=> :"z-index"
irb(main):004:0> x.class
=> Symbol
irb(main):005:0>
irb(main):009:0> x
=> :"z-index"
irb(main):010:0>


--
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.

Re: [Rails] trying to get z-index to work - CSS styling with RJS

Hi Jedrin,

On Tue, May 31, 2011 at 5:22 PM, Jedrin <jrubiando@gmail.com> wrote:
>  I have a section of controller code that tries to style a page with
> moving text and images.
> This used to work a few years ago, but I have not had the site working
> for awhile and I am trying to resurrect it.
> Below is some of the RJS code. The z-index and font-size does not seem
> to work as far as I can tell, though I am especially focused on z-
> index not working. My moving text is supposed to be in front of the
> images, but it is not.
> If I do view generated source from web developer plugin, one of the
> elements generated is shown below. I am not sure if my problem may be
> something different in RJS or CSS is needed or what else I can try to
> troubleshoot the problem ? I am using rails 3.0.5 at the moment ..
> thanks

Another possibility, if Walter's suggestion doesn't lead to a
solution, is that the different behavior you're seeing now vs. then
has to do with browser 'maturation.' I believe most current browsers
will give precedence to the stylesheet over inline styling.

HTH,
Bill

--
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.

[Rails] is there something peculiar about a render :update block ?

When doing RJS stuff of the form below, I seem to recall unexpected
behavoir where if I had many method calls within that block things
didn't work as expected and variables would not have values I
expected. I know I am not being very specific and I don't have an
example. I am trying to refactor some code where I have alot of code
inside the block and I am affraid I am going to have the same sort of
problem I used to have previously when I had written alot of RJS stuff
previously.

render :update do |page|
...
end

--
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.

GWT on server-side...Google Maps..

Hello,

I need a suggestion on implementing GWT application for my server-side
part of project, but I don't know where to start (I'm newbie in
GWT)...And I have to use Google maps API in my server-side ---> this
app will continuously get some coordinates from maps, calculate it in
GWT (Java code) and send it to a database via web services... Any
example, tutorial or suggestion about how to start server-side GWT
coding using Google Maps API ?!

(or is it easy to code in any other language (environment)?!)

Any help is appreciated!

--
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.

[Google Maps API v2] Google maps API and lines / Android

Hello everyone. I am new to programming and am enjoying the
experience. I have a couple of questions I was hoping one of you
experts could answer for me.

My goal: To create a google map (using the google maps api) that
contains A LOT of lines (using different colors) based on coordinats
(e.g. a red line connecting the points 37.065633, -95.674531 to
37.051117, -95.674514). I would like this code to be executed when
someone logs on to a mobile device (starting with Android) and enables
their GPS.

I read that this can be done with google maps static API but as I
understand it, all of the code goes into the web address and so this
is not possible given the number of lines I would like represented.

My questions:
1) What is the best google maps api version to use to do what I would
like.
2) What is a good source for the language necessary to apply this
series of lines.
3) I have been focusing on the development of the google maps api code
to create all the lines I want displayed assuming that this is a
separate issue from getting android to interface with such a map that
exists on my web page. Is this a relatively safe assumption. That is,
once I've developed the code for the google maps api to be put on my
webpage, does the process of getting it to show up on the android
device require a significant overhall of the code on the webpage?

I'm sure these sound like very simple questions but I have been
finding it difficult to find answers to this precise question.

Where I'm at:
I've been reading up on how to program using java and have an android
development book I plan on reading after I'm done with the java book.

--
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: Passing parameters to form class

Yes, you will want to do this within the __init__ method.

Run the super class's init method first so that everything's
initialized as normal.

Then you will have to grab the field for that instance within the
__init__ method (self.fields['vaihtoehdot']) and set the choices
property for it.

On May 31, 3:09 am, skyde <madpoe...@gmail.com> wrote:
> Hello,
>
> I've hit a brick wall while trying to create dynamic forms.
> Basically I am trying to give parameter to a class form and then based
> on that do a multiple choice questionaire.
>
> For example
>
> def somefunction():
>     formi = someForm(ids='1')
>
> class someForm(forms.Form):
>    # get id from, use it to get some information from a model and then
> based on that create a multiplechoice questionnaire. Or better yet do
> the model querying in somefuntion and only pass the results to
> someForm.
>
> *****
> Inside someForm I can create a tuple and then use this tuple to do a
> MultipleChoiceField but I can't for the life of me understand how I
> could parametrize this.
>
> So this works:
> C = (('a','a'), ('b','b'), ('c','c'), ('d','d'),)
> vaihtoehdot = forms.MultipleChoiceField(choices=C,
> widget=forms.CheckboxSelectMultiple)
>
> but when I try to change the C to be dynamic I get an empty form. I've
> tried fiddling with the __init__ function but to no avail.

--
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.

[Rails] Image tag helper not working for rails 3.1

Hi i am a ruby on rails programmer with almost a year experience i am
having problems using the asset tag helper in rails 3.1. if i do
something like
<% image_tag('rails.png') %> the image does not get displayed. if i
check my server log, i realized that it cannot find the image. That is
for images. As for SCSS style sheet it works but whenever i refresh my
browser i get a default template. then my server log says undefined
method >= for nil:NillClass. i dont no what to do at this moment. if i
switch to rails 3.0.7 it all works fine but SCSS does not work at all.
I'm using railsinstaller 1.1.1 with ruby 1.8.7.

--
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.

django-profiles and get_absolute_url

Hi All,

I am having trouble getting an absolute URL using the django-profiles
module with usernames that have periods in them (for instance "/
profiles/user.1").

Here is my profile class:

class UserProfile(models.Model):
user = models.ForeignKey(User, unique=True)
web_site = models.URLField(blank=True, null=True,
verify_exists=False)

@models.permalink
def get_absolute_url(self):
return ('profiles_profile_detail', (), {'username':
unicode(self.user.username)})

If the user name does not have a period in it, it returns a desirable
URL (for instance "/profiles/user1" and "/profiles/user_1" work).

I've tried forcing to unicode, to str, and leaving blank. I've even
forced UTF coding in the database using PRAGMA encoding="UTF-8";

Running out of ideas here...any thoughts?

--
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: Auditing Record Changes in All Admin Tables

That code is supposed to go in the models admin definition like so:

admin.py:
--------------------------------------
class AuditAdmin(admin.ModelAdmin):
    def save_model(self, request, obj, form, change):
        obj.user = request.user
        obj.save()

Ryan

--
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: [Rails] Re: Encoding issue (I think): All apostrophes have changed to these odd characters after a database switch

If the browser is using a typeface (font) that doesn't include the
precise character that your page encoding and HTML require, then you
won't see that character. The glyph you describe sounds like the
"missing glyph" character, and that's why I'm guessing you're seeing it.

Another layer to this cake.

Walter

On May 31, 2011, at 3:48 PM, daze wrote:

> See, I went to school and checked out the site - only to
> find this odd symbol located after double-quotes... it looked like two
> squares on top of each other...

--
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.

[android-developers] Re: Android emulator bottleneck

Ah, the emulator isn't running ARM code just the Dalvik engine. The
problem has been addressed elsewhere by developer supprot that it is
not possible to build an emulator so far that can take advantage of
the graphics acceleration on your PC.

On May 31, 12:25 pm, String <sterling.ud...@googlemail.com> wrote:
> The bottleneck is the emulation of ARM on x86, compounded by the number of pixels it needs to push around to emulate modern devices. There is no PC on which it has usable performance.
>
> String

--
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

how to display a property in a ModelFormSet?

I'm using a ModelFormSet to display and edit multiple records. Some
of those records have related attributes that I want to display, but
not edit. E.g.

lineitem.quantity [editable] lineitem.product.description [not
editable]

So I thought I would add a property to my LineItem class in order to
render that in a ModelFormSet, like so:

def _get_product_description(self):
return self.product.description
product_description = property(_get_product_description)

But that wont get displayed when I render my FormSet.

Any tips on how to deal with this problem?

Thanks.

--
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.

FreeBSD fastcgi rc.d script

It took me a bit to figure out the particulars of this, but I thought
I'd give it to the community, in case someone comes looking for the
same solution.


#!/bin/sh
#
# PROVIDE: myapp
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Notes on usage: Just adjust the location and name of your app as needed.


. /etc/rc.subr

name="myapp"
rcvar=`set_rcvar`

load_rc_config $name

#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
# SET THEM IN THE /etc/rc.conf FILE
#
myapp_enable=${myapp_enable-"NO"}
myapp_pidfile=${myapp_pidfile-"/var/run/myapp.pid"}

command_interpreter="/usr/local/bin/python2.7" #Set this to whatever
works for you
pidfile="${utility_pidfile}"
command="/path/to/app/manage.py"
command_args="runfcgi method=threaded host=127.0.0.1 port=3033 pidfile=$utility$
run_rc_command "$1"

--
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: Django DATETIME_FORMAT Localization

On Wed, May 25, 2011 at 10:46:30AM -0700, jrs_66 wrote:
> How can I do something like strptime(request.POST["start-date"],
> mycurrent_DATETIME_FORMAT)... There's got to be an undocumented way of
> referencing the constant currently being used?

I guess you need `django.utils.formats.date_format` function.

--
Kirill Spitsin

--
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] Re: canonicalToCurrentPackageNames and currentToCanonicalPackageNames

We are working on our own type of Package Management. I was trying to
find out if say the actual file name of the package was
"angrybirds.apk" and the name its listed in when you do a "pm list" is
something like "com.rovio.games.angrybirds". How can I convert between
the two in Android 2.1?

Thanks,
--Edmund

On May 27, 5:44 pm, Dianne Hackborn <hack...@android.com> wrote:
> SDK developers shouldn't care about these.
>
>
>
>
>
>
>
>
>
> On Fri, May 27, 2011 at 5:27 PM, Edmund <chang.edm...@gmail.com> wrote:
> > Hi,
>
> > I am working on an Android 2.1 (API Level 7) device. The
> > canonicalToCurrentPackageNames() and currentToCanonicalPackageNames()
> > functions are API Level 8 (2.2) and above. Is there any way I can
> > accomplish that functionality in Android 2.1?
>
> > Thanks,
> > -- Edmund Chang
>
> > --
> > 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
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

--
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: Action on a ImageResourceCell

In a CellTable

--
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.

Using RequestBuilder to communicate with a RESTful API on another port

I want to write a RESTful GWT frontend for a RESTful backend. The
problem is that the backend code (server) is written in Go and can't
run on the same port as GWT's dev server (port 8888 & 9997).

Due to XMLHttpRequest's (the underlying class behind RequestBuilder)
security restrictions I can't communicate with anything that isn't
running on the same port of the same host? Of course I can write GWT
frontend code, compile it and run it on the same host&port but this
dev approach isn't really feasible as I can't test anything while I'm
in dev mode.

So is there a way to make REST calls (via RequestBuilder or
XMLHttpRequest) to a server that isn't running on the same host&port?

-Alex

--
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.

[android-developers] SAMPLE CODE - creating-remote-background-service

Hi Guys,

I thought this sample code would be useful to someone.


Please feel free to comment on the same (if you think there is any other way to improve it)

Thanks

Regards
Jiggy
Mobile news: 

--
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] Recaptcha Problems

Hi guys,

is anyone can help me with this thing? Actually, I have used this for a
couple weeks and it doesn't matter. Somehow, it suddenly gives me trouble.
My site used page cache, but I have removed it. I don't know what is
wrong with it, I have entered the correct code but it still not valid.

Anybody got clue? or maybe you have other suggestion for captcha things?

Thank you,

--
Hafiz Badrie Lubis

--
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.

Aw: Slow Build Acl

eventually adding some indexes might also help, see:
http://www.mainelydesign.com/blog/view/speeding-up-cakephp-acl-component

--
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] Minimize Pop-up

Hello All,
I have a pop-up window with a close button and a minimize button,I
want to know if there is a way of writing an action for minimizing the
pop-up using Rails or does javascript need to be used here?
On minimizing ,I want the pop-up to appear on the taskbar and on
clicking the taskbar the popup should be restored.


Thanks in advance.


Regards
Chandrika

--
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.

Re: Tr.lời: Re: Load content into static page with ajax

Thats the solution!
Simple include of RequestHandler component will do all automagically.

THANKS!!

On 31 Mai, 11:47, Điển vũ <meotimdi...@gmail.com> wrote:
> Sorry, cakephp don't set $this->autoRender = false. But it will check your
> ajax.ctp. I only need create blank layout ajax.ctp
> <?php
> echo $content_for_layout;
> echo $js->writeBuffer(); // recommmend
> ?>

--
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

[Google Maps API v2] Re: Getting co-ordinates of a locality / area from the specific address.

> I have a list of specific addresses for whom I can get the GEO
> information (lat / long). What I require is the GEO location of the
> area they are in.

You might look into the Geonames service

--
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.

How create beta (testing) website ?

How create beta (testing) website use same webroot and cake folder ?
That beta (testing) website probably is at http://beta.example.com or http://example.com/beta

--
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

Model 'Child' is inherited from 'Parent', trying to filter to get only Child results with Parent.objects.filter(...)

Example code:

class Parent(models.Model):
name = models.CharField(max_length='20',blank=True)

class Child(Parent):
pass

I want to get the result of Child.objects.all() but I DO NOT want to
use Child.
I want to use Parent instead, which I tried to do with:

Parent.objects.filter(child__isnull=False)

Which doesn't work and gives the result of Product.objects.all()
instead.
However If I do the following, it WORKS:

Parent.objects.filter(child__name__isnull=False)

Another way, if I insist on using
Parent.objects.filter(child__isnull=False), is to change the Child
model to the following:

class Child(models.Model):
parent = models.OneToOneField(Parent)

Then Parent.objects.filter(child__isnull=False) would WORK

The problem with the 2 solutions above is that filtering with
child__name__isnull looks hackish, and I don't want to change my Child
model to use OneToOneField.

So is there a better way?

Thanks,
Robin

--
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: Can I perform an "alter table" to remove a "not null" constraint?

On Mon, May 30, 2011 at 09:52:27PM -0700, Gchorn wrote:
> It seems as though the default in Django when creating tables is to
> place a constraint that doesn't allow null values (contrary to what
> I've learned is the default for SQL in general). I have a model which
> has a date attribute, and which I now want to be able to hold null
> values, but when I tried doing this by adding 'null = True' and 'blank
> = True' to the model's field options, Django generates a

Use South (http://south.aeracode.org/).

Or you can run ./manage.py dbshell, and ALTER TABLE yourself, for
example, for PostgreSQL::

ALTER TABLE <app_model> ALTER COLUMN <col> DROP NOT NULL;

--
Kirill Spitsin

--
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] System.loadLibrary() failes in Android with UnsatisfiedLinkError

Hi,

Can anyone help me to resolve this issue in Android:

I'm developing an application with an open source library (i.e.
jpcap).

I have added the lib folder in my project which contains both
jpcap.dll and libjpcap.so. Also I have given the Native library
location to this lib folder.

When I try to call this function System.loadLibrary("jpcap") it throws
UnsatisfiedLinkError and the applications is getting crashed.

Can anyone help me to resolve this issue.


regards,
Vijay

--
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] Communication with Flash (swf)

Hi,
Is there anyway app/webview can communicate with flash?
Is fscommand able to do this? Or anyone have tried using tcp/udp
communication to communicate with flash?
need help, Thanks >.<

--
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: Error: Database table acos for model Aco was not found.

Uncomment out the Configure ACL calls in core.php.

On May 30, 9:12 pm, 8vius <lmd...@gmail.com> wrote:
> ShadowCross your solution worked, I seem to have forgotten those
> permissions to the DB user and now it all works. Thank you
>
> On May 30, 7:01 pm, ShadowCross <adri...@jps.net> wrote:
>
>
>
>
>
>
>
> > One of the troubleshooting steps I take whenever I have this error on
> > a project is to log onto the database using the same connection info
> > as in my database.php file.  The screen shot of MySQLWorkbench
> > indicates a connection using 'root', which can see all the tables in
> > all the databases; the screen shot of the PHPMyAdmin session seems to
> > also be from the 'root' user perspective.  It might be as simple as
> > granting user fonyk_db insert/update/delete privileges to the acos
> > table in the fonyk_db schema.
>
> > On May 26, 9:11 pm, 8vius <lmd...@gmail.com> wrote:
>
> > > Hey all, I'm new to CakePHP and I'm using it at work. I have a Mac
> > > running Mac OS X Leopard at work as well as at home and a PC at work
> > > as well.
>
> > > I have the project I'm currently working on set up on all 3, it works
> > > fine at my work computers but on my home Mac I get the error in the
> > > title. The project is on SVN so I just checked it out ran the SQL
> > > script for my DB schema and set up the same user I have in my work DB
> > > and it will not work still.
>
> > > I also cleared out the cache folders as suggested in other posts with
> > > a similar problem and it still won't work.
>
> > > Obviously I have checked the database table and it is present in my
> > > DB. Anyone have any other clues as to what might be happening?
>
> > > SCREENSHOTS:
>
> > > Error Screen:http://yfrog.com/hsefg1p
>
> > > CakePHP database.php:http://yfrog.com/h3l1t4p
>
> > > DB tables:http://yfrog.com/h0v3ajp
>
> > > DB privileges:http://yfrog.com/h0eu71p

--
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

[android-developers] Re: Moving from free app to a paid model

On May 30, 11:27 pm, Chris <crehb...@gmail.com> wrote:
> Most of my traction came from overseas.  Fragmentation is an issue (I really
> want to drop support for Android 1.x) and I'm guessing I'm going to be
> supporting a "final" free version forever.

You can make it clear to your users that you will support certain
versions of Android for a certain amount of time. That should at
least soften the blow. You could also give manual refunds to people
who would be left in the lurch. Just have them give you both google
order IDs for their old and new purchase.

The number of 1.x users is going to rapidly decrease (from already
small numbers) and you'll find yourself at a point of diminishing
return for the effort you put into supporting them. Mobile devices
aren't expected to last nearly as long as desktop computers.

Doug

--
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

Monday, May 30, 2011

Re: [android-developers] Re: Moving from free app to a paid model

I already have an export to SD, import to whatever version design so even if I had to force them to install a new app it'd be easy.  I'm mostly worried about what the conversion rate might be.  My app is based on long-term data storage and analysis, so old users who simply can't upgrade (eg, due to market limitations & etc.) might be put off.

Most of my traction came from overseas.  Fragmentation is an issue (I really want to drop support for Android 1.x) and I'm guessing I'm going to be supporting a "final" free version forever.

I'm thinking in-app billing for upgrades to a "pro" version might be the best way at this point... any advice on handling this?

Cheers again,
- C

--
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

Ang.: Gwt Compilation

1. Sounds like you don't have the gwt-server query param set. You should be surfing to something like  "localhost:8888?gwt-server.."

--
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.

Re: gwt servlet thread, timer,reload

Since the servlet runs under J2SE, you can go for java.util.Timer and
java.util.TimerTask.

J.Ganesan
www.DataStoreGwt.com


On May 31, 5:08 am, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
wrote:
> See Quartz <http://www.quartz-scheduler.org/>
>
> 2011/5/30 ArnoNyhm <etechniker....@googlemail.com>
>
>
>
>
>
>
>
> > Hi,
>
> > my gwt servlet loads data from a database, handle it and store it in
> > an embedded apche derby database. what i want is, that this process is
> > repeated every 45min automatically.
> > i don´t know how to do this?
>
> > regards arno
>
> > --
> > 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.

--
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.

Jexl or equivalent for GWT???

Can someone suggest using JEXL or similar library on client side??

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.

Print contents of RichTextArea

I am able to print contents of a TextArea to a file by doing this
dom.getElementsByTagName("textarea");

but don't seem to find a way to do the same for RichTextArea. Does
anyone has an idea how to do this?

On the other hand is there a good solution to printing a page that is
designed using gwt?

Thanks,
Ash

--
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.

Re: Overriding a css style loclly

On Tue, May 31, 2011 at 00:23, lalit <lalit.bhatt@gmail.com> wrote:
> That's what I am thinking of now. However I think it would be great,
> if we can have a feature in GWT where we can override the style which
> are applicable in a certain context only let's say in the context of a
> ui.xml file. That way the styling would become a lot flexible. I think
> it should be possible also as it can be handled by the gwt compiler
> while generating the js/html.

The cell widgets does support that, unfortunately the legacy widgets don't.

-- Joe

--
Proper software development is like female orgasm. Some claim it's a
myth, others try very hard to make it happen but don't know how, and
most magazines, books and videos showing it are showing faked ones.

--
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.

Delete only one associated record

I have 2 models with a hasMany/belongsTo relation. Let's say User/
Pictures: a user hasMany pictures and a picture belongs to a user.

I have a page where it is possible to enter data about the user and to
select pictures and enter data about them.
The problem: when I try to "edit" the data I can choose to remove one
or many pictures.
Is there a cake way to accomplish that?
If I simply remove the picture from the page and save cake doesn't
delete anything. Should I do that by hand, coding some code that
checks if the submitted data is different from the recorded data?

Thank you
maxx

--
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: .ctp files

Hi,
 
 However, when I try to
access this file in either Windows IE or Firefox, it displays the code
and not the proper output.  Does anyone know how to remedy this
situation?
 

have you put '<?php' php tag . you may not opened php tag.
please check that.






--
Regards

sathia
http://www.sathia27.wordpress.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

[Google Maps API v2] Getting co-ordinates of a locality / area from the specific address.

Hi,

I have a list of specific addresses for whom I can get the GEO
information (lat / long). What I require is the GEO location of the
area they are in.

For example, their might be a famous restaurant in a specific area of
the town. What I need is the GEO location of the area the restaurant
belongs to. I have the GEO co-ordinates of the restaurant.

One possible solution would be to get the the rectangle of the area
and then find its center. Is there a way to do this ? Get the area
rectangle / Geo Info from a specific GEO location ?

Regards,
Mrugendra.

--
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.

3akarat.com - فيلا للبيع

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

[android-developers] XLIFF for changing text value in TextView

Hello everyone,

I am trying to change the text value in TextView using the src file
(.java). By default I set the value to

android:text="TEST" in main.xml file under TextView

what I want is to change the value using the java so I can change the
text value anytime I want. I look for resources and found the XLIFF in
a sample xml file which I suspect I need to add in my code. It looks
like this

<string name="title_connected_to">connected to <xliff:g
id="device_name">%1$s</xliff:g></string>

I tried to understand the source codes of "BluetoothChat" sample to
further understand the above code but I don't get it.

If someone knows what I am talking about could you please help me?
basically I only want to change the default text value in TextView
that I set in the xml file through the src file (.java)

Thanks a lot,

JR

--
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: Admob requests jump when running just house ads

When I run 100% house ads (ie. admob doesn't pay me to display ads)
the number of requests double. How do I know the true number of
requests being made by my app users? This makes absolutely no sense.
anyone have an answer?

--
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][Jobs] Permanent hire in Ottawa

Anyone in Ottawa (or is relocating to :) Canada looking for a Rails position? Send me a note for more information.

Cheers,
Long

--
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.

No style sheets with DEBUG = False?

If I set:

DEBUG = False

in my settings.py file, my site runs and produces the correct HTML,
but there's no style sheets loaded. Even stranger, if I save the HTML
generated each way into files and compare them, they're identical!

Any clue what might be causing the style sheets not to load with DEBUG
= False?

--
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.

how to implement a data grid? (or populate inlineformset with initial data)

I want to display a list of records that have some editable fields and
some readonly fields, as well as asynchronously add new records to the
list. I thought the way to start would be with an InlineFormSet - but
I can't figure out how to populate my formset with initial data. E.g.
MyInlineFormset(queryset=myquery.all()) or
MyInlineFormset(data=myquery.vales()) doesn't do the trick.

Can someone steer me in the right direction?

Thanks.

--
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: GWT 2.3 composite editor // setValue called twice

I didn't look at the code, so this may not be feasible, but shouldn't
you be doing this heavy stuff only when the value changes? It's
pretty easy to check the current vale prior to doing any work, or
implement via handling valuechangeevents.

On May 27, 8:27 am, Sebastian Beigel <sebast...@beigel.de> wrote:
> Hi,
>
> unfortunately there seems to be no love for the issue I reported a
> while ago concerning the revamped editor code (starting w/ GWT 2.3)
> using Refresher & Initializer.
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=6336
>
> Sub-editors' setValue() methods get called twice, which can be a very
> bad thing if you do something fancy/heavy in you setValue() method.
> But even for non-visible use-cases (like my trivial example w/
> TextBoxes) it's unnecessary and a can harm performance.
>
> Sebastian

--
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.

Re: SuggestionBox events

You can add a setter method in your request oracle to set it, write a
wrapper for your own suggest box class, etc... There's any number of
valid ways.

On May 28, 1:51 pm, Ilya Ilievski <ilija...@gmail.com> wrote:
> Actually I already have defined custom SuggestOracle, but how can I access
> the suggestionBox in the requestSuggestions method so I can change it's
> background to show the gif?I don't know how to hide the loading gif in the
> callback either. Can you please explain a little more to me?

--
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.

[android-developers] Running activity with parameter from status bar notification

Hi all, I'm trying to run my activity from notification with
parameter. The content of activity depends on parameter i send to
activity with intent. It should open my activity when i click on the
information which gives the notification, but the screen does not
change and still remains the same, no matter which activity is
currently running on screen or if I am on my home screen.

Here is my code for notification:

CharSequence text = "You entered \""+name+"\"";
Notification notification = new Notification(R.drawable.icon, text,
System.currentTimeMillis());
Intent intent = new Intent();

// here i say which activity i want to open with click on the
notification
intent.setClassName("com.iwaneez", "com.iwaneez.PlaceSettings");

// here i add my parameter
intent.putExtra("ID", Integer.toString(ID));
PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
intent, 0); // creating PendingIntent
notification.setLatestEventInfo(this, "Mannage place\""+name+"\"",
text, contentIntent);

sNM.notify(R.string.notify, notification);


and here is onCreate() method from PlaceSettings activity

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.place_settings);

ID = getIntent().getStringExtra("ID");
loadPlace();
Toast.makeText(this, "ID = "+ID+", Name = "+name,
Toast.LENGTH_LONG).show();
}

but this activity never starts when i click on the notfication...can
you help me please?? i really need this and I'm out of ideas.
Every advice worth.

--
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


Real Estate