Friday, September 30, 2011

[Rails] Rails website start up time

My application is starting/loading very late when hit my website url
in the browser.
Can anybody give some tips to optimize it please.

--
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] Thanks, Android Developers are the BEST! Another question about databases?

Before my question....Once again thanks for the help, I'm finding
everyone around Android so helpful and kind :)
I found a lot of info with the answers to my last question and have
been reading even more :) I'm learning lots and I'm so happy that is
it so far clicking with me, although its not easy, I thought I was
going to have a much harder time. I just so glad I'm learning :)

OK question time:

I'm creating a app that is going to be storing lots of data. What I
want to know is if there is a way to query (pull) this data and create
a report/form, something I specifically make, I'm not looking for it
to just list data in rows or something. I need the "report","form" to
be specific (something I can create the look of and just have the data
imported into the right places whenever someone asks the app to
produce a report) Is there a way to program this, either within the
same app that's going to be collecting the data, like in the
background or can I make another app to do it. Like say a doc file or
PDF (I'm sure I can't write from the database to a doc or PDF
directly, but maybe export the data to some other file, that has my
layout in place, and just puts the data where I want it then convert
to doc or PDF, the doc and PDF are not important as long as I can just
make a file with a specific look, that can be printed at some point)

Example:
Someone using the main app, which lets them document things like a
patients name, birthday, vital signs, pain info, falls, and so on and
so on....
Now either same person or another person whats to print a report about
that patient data.... but instead of just creating a file of some
human readable kind with rows of data.. it creates a nice looking file
something I pre-created/programed that just imported that certain data
in the right places....

Sorry that took so long to get out, I also kinda repeated myself, I'm
just making sure my point get across right :)
Thank you Thank you for reading and trying to help me!!!!!!!!!


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

Cakephp Transaction

Looks like you're implementing the transaction in your controller. It does not belong there.
Prepare your data in you controller and handle the transaction in the model.

--
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: Adding number to contact

Look at the source code of the Contacts app.

On Sep 28, 5:19 pm, M J <fakeacc...@googlemail.com> wrote:
> Hey,
>
> I really need your help. All I want to do is adding a number to an
> existing contact with a specific label and the ability to remove
> numbers again.
>
> I really tried a lot of things, but none of it works for me. I want
> only support the contacts api > 2.0 and not 1.6. And I do not want to
> create an own Sync Adapter or any Sync Accounts like Skype Twitter and
> so on.
>
> I just want to add and remove numbers to the standard phone book. Is
> this really so hard? I cannot find any documentation for this.
>
> My problem is the raw contact id, I do not have this raw contact id, I
> only have the contact id of the agregated contact and the contact
> name. It seems that I need to add a number a raw contact id, but I how
> do I know to which raw contact id I should add the number? I think the
> best would be to make my own raw contact and add the number there, but
> how can I do this?
>
> I found out how to add a completely new Contact described in the
> ContactManager sample, but if I try this, there are two contacts with
> completely the same name. So this cannot be the right way, too.
>
> I hope any one can help me
> Thank you in advance!

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

Problem in plugin url

when I click link page come from plugin
all link in page is transform to

http://127.0.0.1/cakeplate/tagging/dashboard

http://127.0.0.1/cakeplate/tagging/article

http://127.0.0.1/cakeplate/tagging/dashboard


how to fix it

--
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: All Directions with google directions API

Talking on the same theme, can we get the all destination point
reachable from source point within 1 mile radius.
I am done with distance between two location utility and looking for
alternate route option.
http://tajendrasengar.blogspot.com/2011/09/distance-google-map-api-demo.html

On Sep 26, 2:29 pm, Andrew Leach <andrew.leac...@gmail.com> wrote:
> On 26 September 2011 09:09, Sahil <sahil4...@gmail.com> wrote:
>
> > Is there a way I can get all routes from my current location to "any
> > other location"?
>
> No. There is an infinite number of other locations within any radius.

--
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: Looking for a cakePHP developer

On Fri, Sep 30, 2011 at 9:15 PM, Larry E. Masters <phpnut@gmail.com> wrote:
> I can almost guess at the script you have purchased. We have probably worked
> with it over 30 times @ http://cakedc.com would this happen to be a groupon
> clone?

That script should come with a Statutory warning :D

Tarique

--
=============================================================
PHP for E-Biz: http://sanisoft.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

Re: [Django 1.3] django.views.generic.TemplateView example


On Saturday, October 1, 2011, Micky Hulse <rgmicky@gmail.com> wrote:
> Code:
>
> <https://gist.github.com/1254423>
>
> When using the new class-based generic views, is there a faster way
> for me to pass URL params to the template?

There's no need to subclass TemplateView and provide your own implementation of get_context_data() - the default TemplateView implementation does exactly (and I mean character-for-character exactly) what you've defined. So, you just need to deploy a default TemplateView in your urls.py:

('^foo/(?P<id>\d+)/$', TemplateView.as_view(template_name='my_template.html'))

Your template should work exactly as-is.

I know the class-based views docs aren't as good as they could be - thats mostly my fault. I also know that "read the source" isn't a real documentation answer. However, the CBV code is quite well documented internally, and isn't all that complex at the end of the day - if you've got questions about how to do something obscure with CBVs, a quick peruse of the source is well worth your time.

Yours,
Russ Magee %-)

--
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 REST Access ?

Dear All.

Kindly please give me your enlightment to CRUD Django database using
HTTP-GET.

For the sake of simplicity, I use basic django example from
https://docs.djangoproject.com/en/1.2//intro/tutorial02/
I didn't add any fancy things.
My admin.py as simple as :

-----START---
from polls.models import Poll, Choice
from django.contrib import admin

admin.site.register(Poll)
admin.site.register(Choice)

-----STOP----

Currently, I can add records to Poll and Choice from web interface after
login.

What I have to write so that I can add another Records to "Choice" using
simple http get , i.e :

http://127.0.0.1:8000/admin/poll/choice/add/?username=bino&password=123&poll=1&choice=iam+trying

I need this because I plan to post Kannel dlr to django, and AFAIK
kannel do this by using singleshoot of GET so it can not deal with
default Django Authentication mechanism.

Sincerely
-bino-

--
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] Direction help?

Keep a centralized server where the data gets populated. The app retrieves the data from the data server based on the profile of the user and displays.

On 30 Sep 2011 22:51, "Sam Deleon" <samjdeleon@gmail.com> wrote:
> I'm new to android development, I have been reading tutorials online
> and also started reading a beginners book. I already have a app idea
> but I have a question that I searched for but can't find.
>
> I'm wanting to build a app that when first launched will come to a
> login screen, once logged in, the Data displayed will be specific to
> that user login.
>
> Think of it like Bank Apps or an even better way to think of it is,
> say you have 3 nurses, each with their own device, they all launch the
> same app, when they log in, their screens look the same but the list
> of patients are different for each nurse, and let's say the list was
> created by another person from another device, with a app that is tied
> to the nurses app but different in the way that is sets up scheduling
> and other stuff.
>
> I want to know if it's possible and if so if I should be more focused
> on learning something more than other stuff? I know I have lots to
> learn but would doing this type of app have more to do with databases
> rather than android itself?
>
> --
> 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

[Rails] Re: postgresql duplicate key violates unique constraint

Robby Russell wrote in post #72333:
> SELECT MAX(id) FROM entities;
> Then run...
> This should be higher than the last result.
> If it's not higher... run this to try and fix it. (run a quick
> pg_dump first...)
> SELECT setval('entities_id_seq', (SELECT MAX(id) FROM entities)+1);
> reload your app...and see if its still happening.

I have the same problem but I don't know how to solve it since I can't
relate the solution here (names of tables, etc.) to the data given by
the OP. How do you know you need to SELECT MAX(id) FROM entities, or
SELECT setval('entities_id_seq', (SELECT MAX(id) FROM entities)+1);
with the information given by the OP? I can't see the relation and
therefore I have no clue how I can solve my problem.

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

Re: How to do something just like in user right assignment ?

Dear Sébastien

Thankyou for your enlightment
I really appreciate it

Sincerely
-bino-


On 09/30/2011 03:34 PM, BILLION Sébastien wrote:
> Hi,
>
> You must add a ManyToManyField in your models
>
> https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyField
>
>
...

--
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: uploading large file fails

At that point, I would use a Java/flash uploader and hook it up to a
CDN.

On Sep 30, 10:34 am, Sam Sherlock <sam.sherl...@gmail.com> wrote:
> @miles
> for an interface for something like yousendit.com
>
> for users who are not techie enough for other options
>
> @aortizhi I think your issues with server limitations (outside of php)
>
> On 30 September 2011 18:14, Miles J <mileswjohn...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Why are you even uploading a 58MB file?
>
> > On Sep 29, 1:21 pm, aortizhi <aorti...@gmail.com> wrote:
> > > i already have changed to post_max_size=800M and upload_max_filesize =
> > > 800M, and still don't work, am i doing something wrong?
> > > On Sep 29, 3:06 pm, Ryan Schmidt <google-2...@ryandesign.com> wrote:
>
> > > > On Sep 29, 2011, at 15:01, aortizhi wrote:
>
> > > > > When i select a file that
> > > > > is not that big, it uploads ok, but when i am trying to upload a file
> > > > > that is at least 58 MB it fails uploading and the file won't be the
> > > > > same at server side.
>
> > > >http://php.net/upload-max-filesize
>
> > > > The default max is 2MB in PHP 5.3.8.
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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
> > athttp://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

Re: syncProxy + Xsrf

Just for the record,

>> I guess the underlying issue is that syncProxy uses
>> interfaceWhateverService extends XsrfProtectedService and does not use
>>  WhateverServiceAsyn that gets created by GWT.create().

I gave up on syncProxy and will use the appengine remote api instead

http://code.google.com/appengine/docs/java/tools/remoteapi.html

Shawn

--
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: [android-developers] how to get the path of the directry which I will choose it when I click on a button

On Thu, Sep 29, 2011 at 7:49 PM, Souad <souad.fhoula@gmail.com> wrote:
I would like to get the path of the directry which I will choose it when I click on a button, of couse without finich my application. how can I do this?

Your questions is really not clear.

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

Re: [android-developers] barcode scanner not launching

I suggest using their IntentIntegrator, as I did in this somewhat-old
sample project:

https://github.com/commonsguy/zxingdemo

Also, delete your <intent-filter> -- *you* are not *implementing* an
activity supporting com.google.zxing.client.android.SCAN. You are
*consuming* an activity from the Barcode Scanner application that
implements com.google.zxing.client.android.SCAN.

Beyond that, since you did not state what your problem is, it may be
difficult for people to assist you.

On Fri, Sep 30, 2011 at 7:30 PM, leigh8347 <leigh8347@aol.com> wrote:
> im having a little trouble with my app
>
> i want the barcode scanner to open on the click of a button(scan1),
> scan barcode, and return details to a edittext (barcode1).
>
> here is what i have so far......
>
> package com.android.app;
>
> import android.app.Activity;
> import android.content.Intent;
> import android.os.Bundle;
> import android.view.View;
> import android.widget.Button;
> import android.widget.EditText;
>
>        public class Scanner extends Activity {
>
>            /** Called when the activity is first created. */
>            @Override
>            public void onCreate(Bundle savedInstanceState) {
>                super.onCreate(savedInstanceState);
>                setContentView(R.layout.scanner);}
>
>            public Button.OnClickListener scan1 = new
> Button.OnClickListener() {
>                public void onClick(View v) {
>                    Intent intent = new
> Intent("com.google.zxing.client.android.SCAN");
>                    intent.setPackage("com.google.zxing.client.android");
>                    intent.putExtra("SCAN_MODE", "PRODUCT_MODE");
>                    startActivityForResult(intent, 0);
>                }
>        };
>
>            public void onActivityResult(int requestCode, int resultCode,
> Intent intent) {
>                if (requestCode == 0) {
>                    if (resultCode == RESULT_OK) {
>                        String contents =
> intent.getStringExtra("SCAN_RESULT");
>                        // Handle successful scan
>                        EditText editComment =
> (EditText)findViewById(R.id.barcode1);
>                                editComment.setText(contents);
>                    } else if (resultCode == RESULT_CANCELED) {
>                        // Handle cancel
>                    }
>                }
>            }
>
> }
>
>
> this is my manifest entry......
>
>                <activity android:name=".Scanner" android:label="@string/app_name" >
>                        <intent-filter>
>        <action android:name="com.google.zxing.client.android.SCAN"/>
>        <category android:name="android.intent.category.DEFAULT"/>
>      </intent-filter>
>                </activity>
>
>
> any help would be great
>
> many 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
>

--
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 *Advanced* Android Development_ Version 2.0
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: [RequestFactory] Updating a proxy

If you edit() and persist User (what you did in the code sample you sent), then the "mutableUser" will be frozen at the time you fire() the request, and if all goes well (i.e. in the Receiver's onSuccess), you could then just use the "mutableUser" instance as your new "cached" user.

--
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/-/fjBBJHQMHdoJ.
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] Accessory Kit and any other phone than a Nexus

Anyone ever get the accessory DemoKit to load on any other phone other
than a nexus?
I'm trying with a Galaxy tab and a t-mobile G2, both are running
android 2.3.4, which ought have everything.

Loading the apk gives me this error, and my android ide and libraries
are all up to date.

Package com.google.android.DemoKit requires unavailable shared library
com.android.future.usb.accessory; failing!

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

[Google Maps API v2] Re: Google's geocode example doesn't work :(

Hi John
Before you finalise your application I would suggest you have a look
at http://code.google.com/apis/maps/articles/phpsqlsearch_v3.html
This used V3 of the API instead of V2 which you are using.
V2 is depreciated and could be turned off at any time
Regards Davie

On Sep 30, 11:12 am, John <john_sid...@hotmail.co.uk> wrote:
> Hi guys,
>
> Thank you both for all of your help!!!!  It worked!!  I'm well
> chuffed.  Turns out it was me just being stupid as per usual.
>
> Kind regards,
> J

--
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] Re: Re: Playing an MP3 through Ruby on Rails in chrome using send_file

>
> :s3_permissions => :public
>
> in your has_attached_file call.
>
> But if you pass :private instead, then the file can only be accessed
> through your S3 credentials. Okay, now only your app can read it. But
> that's what the expiring_url method is for. That gins up a one-time
> token that expires in N minutes, and allows one download during that
> window, after which it simply won't work at all. Your keys are used to
> create this token, but it's a one-way hash so you don't have any leakage
> possible of your actual credentials.
>
> Walter

I think the only problem I have left is that I was hoping to not use S3
and be able to store the files on my own server.

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

[Rails] Re: Playing an MP3 through Ruby on Rails in chrome using send_file

I think I like what you're saying, but the only problem I have with it
is controlling access to the paperclip url. This may mean I just don't
understand how the paperclip urls work. But I'm also trying to ensure
that only the user who uploaded it, can access it. I wasn't sure if I
would be able to control this once a url for an audio file was exposed.

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

[android-developers] Re: repo Sync issues with tagging

I have found that there is a issue with the host server of this git
not having the proper tagging that that original git has but is
currently down

for some off reason when the said admin who original ported the git
over merged all tags into on and completely renamed tagging system
which is inconclusive as far as i can tell

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

Issue with Overlay Types and JSON structure.

Hi guys,

I have a question about overlay types. I have a JSON with the
following structure:

"styles" : {
"property1" : "value1",
"property2" : "value2"
}

and I defined a method like:

public final native JsMap<String, String> getStyles() /*-{
return this.styles;
}-*/

When I call the getStyles method from my application I get an instance
of JsMap<String,String> but it have only the keys, I mean when I call
the keys() methods I returns an array of strings with property1 and
property2, wich is Ok, but when I make a call to the get("property1")
or get("property2") method, that keys return always null.

I don't know if there is an error on the JSON structure and if it is
match with, what the JsMap object expect. I think that is a simple
structure, but effectively I am missing something.

Cheers!.
M.

--
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: [android-developers] How to get pure UTC time?

On Wed, Sep 28, 2011 at 11:52:18AM -0700, cool_zack wrote:
>
> I want to get UTC time. It should not change except for tiny
> adjustments that happen from Network. User modifications to the time
> on the device must not affect it.

What you're asking for is SNTP (often abbreviated as NTP). If all you
need is an app, search in the market for NTP. Most of the NTP apps
will set your device's clock (requires root).

There's an app, called "UTC Time" which displays local time and UTC
side by side. With a rooted device, it will also keep your device's
time set to whichever SNTP server you have it configured for.

If you need this for an app you're writing, let me know what you find,
as I have some ideas along that line, myself......

Later,
--jim

--
THE SCORE: ME: 2 CANCER: 0
73 DE N5IAL (/4) | Remember your spelling rules, including:
spooky130u@gmail.com | I before E except after C
< Running FreeBSD 7.0 > |
ICBM / Hurricane: | BEING a native-born American, I don't
30.44406N 86.59909W | always notice our WEIRD spelling....

Android Apps Listing at http://www.jstrack.org/barcodes.html

--
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: Redmine MySQL rake command issue

Walter Davis wrote in post #1024385:
> On Sep 30, 2011, at 12:35 PM, Andre Flory wrote:
>
>> "RAILS_ENV" is not a command blah blah.
>>
>> So I reorder it to: rake db:migrate RAILS_ENV=production
>
> If you're using Rails 2.x, then this should work, although you might
> want to try quoting the word production in this syntax. If you're using
> Rails 3.x, then RAILS_ENV is deprecated or removed, depending on 3.0 vs
> 3.1. The new syntax is Rails.env, I believe.
>
> Walter


It's Rails 2.3.11 as per the requirements for the version of Redmine I
am installing. Rack version 1.1.1.

Neither single or double quotes worked in either ordering of the
command.

DemiSheep

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

[Google Maps API v2] Editing Polygon Geofence

Dear All,
I have a page here http://e-response.com.my/maps/viewGeoFenceMap.php?geoFenceID=26
where I have created a geofence. My problem now I want to enable an
edit function where I can edit this geofence. Any idea please?

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

DataGrid is from GWT 2.4: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/cellview/client/DataGrid.html

Everything else is in the sample's code (PendingChange, BirthdayChange, CategoryChange, etc.) or in the ContactDatabase.java (Category, ContactInfo, DatabaseConstants)

--
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/-/b7SKhrErJRAJ.
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] Re: CHAVE MAPS

On Sep 30, 3:47 pm, Denison Gonçalves <denison...@hotmail.com> wrote:
> Qual tipo de chave preciso para colocar em um programa de rastreamento
> veicular?

> What kind of key need to put in a vehicle tracking program?

I think the answer is likely to be "A Premier account's Client ID"

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

[android-developers] Re: Regarding Google Map

On Thursday, September 29, 2011 7:39:08 PM UTC-4, nageswara rao rajana wrote:
    I developed an application when i am walking for every 50 meters of distance a marker is displaying on google map.
    Now my request is  that when i tap on any marker a pop should display like a user form so that i enter some details in that form.
    So please any one help me in this and also provide me any sample code.

This is a good open source project that can help you get on your way there -

https://github.com/jgilfelt/android-mapviewballoons 

--
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] Possible RenderScript bug when not referencing an included rsh file form code.

I have some RenderScript code that includes an inline function form
a .rsh file. When I remove the use of the function llvm-rs-cc.exe
throws an un-handled exception and crashes.

The rs file looks like this:

rs_allocation gIn;
rs_allocation gOut;
rs_script gScript;
float Contrast = 1.0;
rs_script ClampRgbValue;

void root(const uchar4 *v_in, uchar4 *v_out, const void *usrData,
uint32_t x, uint32_t y) {
float4 f4 = rsUnpackColor8888(*v_in);
f4.x = clampRgbaValue(f4.x); // COMMENT OUT THIS
LINE AND llvm-rs-cc.exe CRASHES!!!!
*v_out = rsPackColorTo8888(f4);
}

void filter() {
rsForEach(gScript, gIn, gOut, 0);
}
Where clamp_rgb_value.rsh looks like:

inline float clampRgbaValue(float value)
{
if(value > 1.0f)
{
return 1.0f;
}
if(value < 0.0f)
{
return 0.0f;
}
return value;
}

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

Gwt stream version.

GWT RPC Request contains stream version. Now stream version is 5. May
be somebody knows how can I get stream version from code?

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

(GugukluhayaT) BALIK AVCISI KARTAL






[android-developers] Permission denial on ACCESS_FINE_LOCATION on Samsung Galaxy (other GPS apps work)

Hi there,
just released my first app to beta testers and real life (the one with
real users) caught me...

One of them has a Samsung Galaxy phone and he cannot launched the
application (had something along the lines of "application not
installed").

He sent me his logs and the interesting line seems to ba that one :
09-30 13:16:33.027 W/ActivityManager( 125): Permission Denial:
starting Intent { act=android.intent.action.MAIN flg=0x10000000
cmp=com.droidfa/.ControlPanel } from ProcessRecord{40967030
30906:com.android.packageinstaller/10054} (pid=30906, uid=10054)
requires android.permission.ACCESS_FINE_LOCATION.

The issue is that other GPS applications work fine on his phone (GPS
Test).

He are the permissiopns from my manifest.
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission
android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"></
uses-permission>
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-
permission>
<uses-permission android:name="android.permission.WAKE_LOCK"></uses-
permission>

Many thanks in advance for your help.

JM

--
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: Can't locate the database?

I could be wrong, but here is my understanding.  You have the default config and the test_default config.  Now.  I was under the impression when I first looked in there that there was a default and test_database that you could change which one you were pointing to based on the project you were working on.  After all, there are instances when you want access to multiple databases at the same time.  I was hoping to set somewhere in my code that I was using cake_posts database and use that as I saw fit.  Is this impossible?

Where I have my cake directory I would like be able to use different database settings as I see fit eventually.

Admittedly, I was short on time and rushed to the very end so that I could practice some of the coding aspect (long story).  But, based on what I described, is it doable?

On Fri, Sep 30, 2011 at 1:07 AM, Ryan Schmidt <google-2010@ryandesign.com> wrote:
I'm actually not sure offhand how to change the database config. Why do you want to? Why not just specify your database details in the $default config?

On Sep 29, 2011, at 21:29, Yves S. Garret wrote:

> The tutorial didn't really tell me how to do that.  Actually, I'm not telling Cake anywhere what DB to use.  How and where can I set that?
>
> On Thu, Sep 29, 2011 at 4:04 PM, Ryan Schmidt wrote:
>> ......so you have a *database* called cake_posts that contains a *table* called posts?
>>
>> Also, in your config I see you have chosen not to set up the $default database config but instead to set up a new config called $cake_posts. Where are you telling CakePHP that you want it to use the new $cake_posts config instead of the $default config?

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

Add style for even row and add row in cellTable.

I created a cellTable having more number of rows and columns. I wana
add background color for each row in celltable. Shall I change the
property in celltable? Help 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.

Re: [android-developers] Re: how to check if device has hardware search key

On Fri, Sep 30, 2011 at 6:25 AM, Latimerius <l4t1m3r1us@googlemail.com> wrote:
> Having no way to check seems unfortunate to me.  I mean, a lot of people
> bemoan Android "fragmentation" and the need to check before you use a
> feature (and to provide a fall-back if you can't).  I don't mind any of
> that, but not even being able to check really takes the problem to the next
> level ...

You should not be relying up on the existence of SEARCH, CAMERA, or
other optional buttons. You should be having other means of
accomplishing those same ends.

SEARCH is supposed to invoke a search. When using SEARCH for search,
have an on-screen mechanism to invoke search (action bar button, menu
choice, etc.) in addition to supporting the SEARCH button for invoking
search. That's not only to benefit those who lack SEARCH but those who
forget there's a SEARCH button (I almost never use mine, for example).

--
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 *Advanced* Android Development_ Version 2.0
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

Define Meta attributes at runtime

Hi folks,

I'm wondering if it's possible to set / redefine Meta attributes of a
given model at runtime.

The problem arises because I'm using a framework with many classes
defined there, and interacting in a right way. I need to redefine some
of Meta attributes of that class, but without overriding framework file,
because it can cause many trouble in any update.

Anyone know how I can access them?

To set an example:

folder1
__init__.py
models.py

from folder1.models import ModelTrouble

ModelTrouble.Meta.verbose_name = "my_verbose_name"

Thanks in advance
Isaac

--
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: XML DOM Parser works in JAVA, Crashes Android App

This is very weird, the debugger steps, using step into, the try and
than steps back out to the parent of the method without printing the
warning statements. I guess io would be hard to write a debugger for.

If I were the Android Plugin God, I would have Log.i print to the
LogCat and System.out.Print print to console. Just a thought.

Thanks for the support though.

Chris

--
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] Serversocket is not working

Hi,

I tried to create a serversocket, but it is throwing IOException. How
to solve this issue?

The code is:

try {
ServerSocket ss = new ServerSocket(port);

TextView tv = (TextView)findViewById(R.id.status);
tv.setText("Server Started");
ss.setReuseAddress(true);
while(isRunning){
try {
Socket socket = ss.accept();
tv.setText("Connection Accepted");
} catch (IOException e) {
tv.setText("IOException 1");
e.printStackTrace();


}
}
}catch (IOException e) {
// TODO Auto-generated catch block
TextView tv = (TextView)findViewById(R.id.status);
tv.setText("Could not listen on port: " + port);
e.printStackTrace();

--
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: GWT Developer Plugin for Firefox 7

Yeah I'm on Ubuntu 64 bit

For other 64 bit users out there, I needed to do the following:
 - Get your Linux 64bit gecko sdk from Mozilla (available here: http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/7.0/sdk )
 - Add "-std=gnu++0x" to CFLAGS in the Makefile
 - Make sure I had the 32 bit building stuff - I needed to install libc6-dev-i386 & g++-multilib

(The error I got previously was from not editing the Makefile correctly so I deleted my post)

--
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/-/1zdUyD1yiCwJ.
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] Re: XML DOM Parser works in JAVA, Crashes Android App

Thanks Kostya,
My debugging talent isn't great. I got a parsing error on line 5.

I really wish that System.out.println would print to console rather
than Log, but that's just me.

Thanks.
Chris

--
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: XML DOM Parser works in JAVA, Crashes Android App

Thanks Kumar,
It keeps opening the "DexFile.class" (seems to throw an io exception)
in the debugger and says Source not found. It asks me if I want to
change the source. Nothing really glaring in the log. Why does the
compiler see my file and not the runtime guys?

Thanks.
Chris

--
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: How can i delete a GWT Module?

In your project's settings, go to Google → Google Web Toolkit and make sure your module is no longer referenced there.

--
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/-/4ZwwPEqgcHEJ.
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: How can i delete a GWT Module?

Same problem here. Did anyone solve this problem?

--
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/-/wNKGbxTunckJ.
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 Developer Plugin for Firefox 7

I tried compiling on Ubuntu 11.04 and got:

ExternalWrapper.cpp:50:1: error: expected constructor, destructor, or type conversion before 'ExternalWrapper'

--
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/-/eT5zVkkkOYcJ.
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: [android-developers] Re: How do I navigate to the SD card?

Have you tried the Sideload Wonder Machine?

http://www.androidcentral.com/sideload-android-apps-all-you-want-sideload-wonder-machine

30.09.2011 7:20, cellurl пишет:
> We just tried it and it didn't work.
> Its an AT&T Aria phone?! No SIM card.
> In Settings it didn't have an "allow 3rd party apps" button...
>
> There is no file-manager and no way to get a file-manager.
>
> We were able to use a micro-USB cable to put the *.apk file in,
> but we couldn't figure which directory to use (perhaps its
> invisible...)
>
> -cellurl
>

--
Kostya Vasilyev

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

Thursday, September 29, 2011

[android-developers] Load Contact Image in Listview

Hello to all,

I am developing one demo application . In that application i am trying
to load contact photo using below function.

public static long getProfilepicture(Activity activity, String
address)
{
Uri personUri =
Uri.withAppendedPath(ContactsContract.CommonDataKinds.Phone.CONTENT_FILTER_URI,
address);
Cursor phoneCursor =
activity.getContentResolver().query(personUri,projection, null, null,
null);

if (phoneCursor.moveToFirst())
{
int indexPersonId =
phoneCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone._ID );
long personId = phoneCursor.getLong(indexPersonId);
phoneCursor.close();
// Uri uri =
ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI,
personId);
return personId;
}
return 0;
}

public static Bitmap loadContactPhoto(ContentResolver cr, long id)
{
Uri uri =
ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, id);
Log.i("---------------- Load Contact Photo",".."+uri);
InputStream input =
ContactsContract.Contacts.openContactPhotoInputStream(cr, uri);
if (input == null)
{
Log.i("---------------- Input is Null","..");
return null;
}
return BitmapFactory.decodeStream(input);
}

First function getProfilepicture return the id of the contact person
on based of mobile number. Second function loadContactPhoto return the
bitmap.

But the second function always return the null.Can anyone tell me what
is the problem ? Where i am wrong ?

Here i also mentioned the Uri from which function trying to
openContactPhotoInputStream.
content://com.android.contacts/contacts/32

Thanks in advance.

Regards,
Chiag raval.

--
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: Problem with linking a pdf at a outside webroot folder

as a hack, couldn't you just create a symlink in the webroot folder to the pdf folder? :)
i use symlinks inside the folder structure all the time for my **development** environment.. not sure if its a clever idea in production though...


On Fri, Sep 30, 2011 at 11:29 AM, Ryan Schmidt <google-2010@ryandesign.com> wrote:
On Sep 28, 2011, at 04:15, heohni wrote:

> I have this structure:
> controller
> model
> pdf <====
> webroot
>
> In this pdf folder are my files and I am not able to change this
> folder location as it gets filled by and external CMS Service.
>
> I need now to link to these pdfs and my link outputs me something like
> that:
> http://localhost/pdf/8104-3-de.pdf
>
> Is there a way through the routes.php or maybe htaccess to get the
> files properly opened?

http://groups.google.com/group/cake-php/browse_thread/thread/d9d85da93ae29088



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

Re: AutoBean Deserialization of JSON that can be an Array or single Object

>> but I cannot guarantee the JSON format.

What library are you using on the server? 

>> Should I look to change my JSON server output so that even if a 
single object is returned it is still wrapped in an array? 

Yes!

--
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/-/sUIzUnQtICkJ.
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] gift

LADKIYAN KAM KAPRE PEHENTI HAI KYON ?
LADKE PURE KAPRE PEHENTA HAI KYON ?

On Thu, Sep 29, 2011 at 4:01 PM, sathish karunanethi <sathishhani786@gmail.com> wrote:
she is very nice


--
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: How do I navigate to the SD card?

On Fri, Sep 30, 2011 at 12:20 PM, cellurl <gpscruise@gmail.com> wrote:
> We just tried it and it didn't work.
> Its an AT&T Aria phone?! No SIM card.
> In Settings it didn't have an "allow 3rd party apps" button...
>
> There is no file-manager and no way to get a file-manager.
>
> We were able to use a micro-USB cable to put the *.apk file in,
> but we couldn't figure which directory to use (perhaps its
> invisible...)

Install the Android SDK, connect the phone to USB and use

$ adb install your-app.apk

to install. You need to enable USB debugging first, but no
need for an SD card, etc.

--
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: HTC and LG haven't implemented Android in the right way

AFAIK it is possible to specify point size array along with vertex
array. Enabling point sprites turns points to textured quads. Turn on
bilinear filtering and alpha test or blending. Of course the texture
should depict a star.

On 29 сен, 23:26, Kostya Vasilyev <kmans...@gmail.com> wrote:
> 29.09.2011 23:01, MobileVisuals ?????:
>
> > I claim that HTC HD doesn't support OpenGL ES 2.0, because size
> > attenuation is a part of OpenGL ES 1.1 and it is not supported.
>
> Quite possibly, you're right...
>
> > So HTC hasn't implemented the things that they say in the
> > specification, but why not?
>
> Who knows?
>
> You could contact their support, but even if they provide a plausible
> answer (and that's a big "if"), it's not going to magically fix all the
> HTC devices out there...
>
> > Thanks for the idea, do you mean like this?
>
> > Scale to small size if the sprite is far away.
> > Scale to medium size if the sprite is medium distance.
> > Scale to big size if the sprite is close.
>
> More or less - you are currently doing continuous range scaling of your
> sprites (I presume). If you replace them with texture mapped quads, you
> could always use the same image, or pick one of the ones predefined at
> various scale factors, to improve the image quality and performance.
> Sort of like mip-mapping.
>
> But that's not the core idea - the main thing is to replace attenuated
> points with texture mapped quads.
>
> > That could work for other animations, but it would be very slow for my
> > star cluster animations. There are hundreds of stars in each cluster.
> > As it is now, I draw each star cluster in one single glDrawArrays
> > call. That makes it fast.
>
> Hundreds doesn't sound too bad - at those poly counts, it's the fill
> rate (overdraw) that can kill performance. But since sprites are
> typically small, it probably won't be an issue.
>
> > Wouldn't I have to make one glDrawArrays call for each one of the
> > stars if I had to scale them in different sizes? That would mean
> > hundreds of glDrawArrays calls instead of one.
>
> Not the way I'm reading the docs (mind you, my GL is more than a little
> rusty - last time I worked with 3D was more than 10 years ago)....
>
> But it seems like you should be able to draw all quads that use the same
> texture in one call, using GL_TRIANGLES or GL_QUADS (not _STRIP or _FAN,
> because those are always joined). This can product transparency
> artifacts depending on their z-order, so you'd need to sort the quads
> according to their texture and z-order both.
>
> Or just forgo the mipmapping for initial tests, then there's be one less
> thing to worry about with respect to sorting.
>
> > A point sprite is a screen-aligned element of variable size that is
> > defined by a single point. Would it really be a sprite if it was
> > mapped to a quad polygon?
>
> If it looks like a sprite, and quacks like a sprite...
>
> --
> Kostya Vasilyev

--
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 do I navigate to the SD card?

We just tried it and it didn't work.
Its an AT&T Aria phone?! No SIM card.
In Settings it didn't have an "allow 3rd party apps" button...

There is no file-manager and no way to get a file-manager.

We were able to use a micro-USB cable to put the *.apk file in,
but we couldn't figure which directory to use (perhaps its
invisible...)

-cellurl

--
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] ubygems.rb file - is error?

Hi, I just installed Rails, and I was wondering what is this file?
/lib/ubygems.rb ?

Here is a copy of it:
https://github.com/rubygems/rubygems/blob/master/lib/ubygems.rb

Is this a bug/type (ubygems rather than what it should be, ubygems) or
is it supposed to be that way? If so, what does it do, could someone
explain how it works? (sorry if it's a dumb question I'm new at this!)

Thanks

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

[android-developers] Re: how to parse xml from sdcard...

I guess this article will help you

http://p-xr.com/android-tutorial-how-to-parseread-xml-data-into-android-listview/

heers

On Sep 29, 5:45 am, GopalaKrishnan D <gopall...@gmail.com> wrote:
> i don't know how to parse xml... i saw many example but i can't
> understand... can u help me
>
> --
> ~* Regards*
> *GopalaKrishnan D*

--
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] Related combobox

hello,
i have 3 comboboxes, i want to load 2nd combobox based on the
value selected in 1st combobox. and 3rd combobox should be loaded
depending on the value selected in the 2nd combobox.
i have used observe field for 2nd and third combobox , it works
for the first combobox but not the second one.

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

[Rails] Rails 3.0 + jQuery Datepicker. Edit value

I recently started using jQuery and the Datepicker with an application
of mine.

with the help of http://railscasts.com/episodes/213-calendars I got the
datepicker working on a text_field containing a date.

Problem however is when we edit a model. Since a text_field shows the
database value for a field by default, it displays the date as
'2011-05-24'. When we open te datepicker on this field it defaults to
'today' since it cant read the current value of the field.

Picking a date will display it in the format specified of datepicker,
but saving is no problem. I guess Rails is smart enough to figure it out
between the I18n.

My question is, how can I make sure my date is displayed in the format I
want it to be in the text_field of a form when editting.

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

Re: Problem with linking a pdf at a outside webroot folder

On Sep 28, 2011, at 04:15, heohni wrote:

> I have this structure:
> controller
> model
> pdf <====
> webroot
>
> In this pdf folder are my files and I am not able to change this
> folder location as it gets filled by and external CMS Service.
>
> I need now to link to these pdfs and my link outputs me something like
> that:
> http://localhost/pdf/8104-3-de.pdf
>
> Is there a way through the routes.php or maybe htaccess to get the
> files properly opened?

http://groups.google.com/group/cake-php/browse_thread/thread/d9d85da93ae29088

--
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: CSRF with AJAX problem

Yes I have. It returns null if no cookie.

--
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/-/Y4TMZ5p-XYgJ.
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: accessing domain of a cookie

you can set cookie domain in the django settings.py file 
SESSION_COOKIE_DOMAIN

https://docs.djangoproject.com/en/1.3/ref/settings/



On Fri, Sep 30, 2011 at 6:31 AM, aiexbecumont <alex.beaumont@gmail.com> wrote:
Is there a way to tell what domain a cookie was set for?
request.COOKIES only gives name/value pairs, but i would like to
inspect the domain that the cookie was set for.

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




--
At first there is just hope and self-belief. all that will be will start from this moment.

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

Get latest item by many items in a queryset

Hi Users,

So I have a DB that has a list of backends and there properties and I
have a table that gets updated with if it is able to access and the
status. It is only updated when it is reported down or, if it was
reported down and is currenly back up.

What i want to do is make a queryset that will get only the latest
status for a list of backends.


#models.py

class Backend(models.Model):
src_host = models.CharField(max_length=255)
ip = models.CharField(max_length=45)
port = models.CharField(max_length=8)
endpoint_name = models.CharField(max_length=255)
service_prop_name = models.CharField(max_length=255)
endpoint_url = models.CharField(max_length=255)

class Status(models.Model):
backend = models.ForeignKey(Backend)
timestamp = models.DateTimeField()
status = models.CharField(max_length=255)

class Meta():
get_latest_by = 'timestamp'


What I would like to do is get the latest status reported for the last
ten minutes. Without having to loop through a list querysets and
performing the .latest() function on it.

Is this possible?

Thanks,

Colin


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

CSRF with AJAX problem

I have a problem/bug found? in AJAX with CSRF. I don't use {% csrf_token %} at all. I use only AJAX forms so - there is no cookie set for csrf. In taht case - https://docs.djangoproject.com/en/1.3/ref/contrib/csrf/#ajax is useless :(
I can use get_token to generate it, but I have to put it in all my sites so it has no sense. 

How can I make that cookie without using csrf tag?

--
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/-/SDNW2jMK0ngJ.
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: I have a map and it is necessary to put more than 1,000 objects.

On Thu, Sep 29, 2011 at 6:46 PM, lbendlin <lutz@bendlin.us> wrote:
> you can do that but that's not really necessary. The map API already does
> that for you (figure out which overlay items are visible and render them).
> Your issue may be elsewhere in the code.

I've seen enough reports on this that I think ItemizedOverlay is
simply overwhelmed when there are more than a few hundred points. This
is not to say that there are no other possible issues, but 1000 points
in an ItemizedOverlay probably will be a problem regardless.

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

Android Training in NYC: http://marakana.com/training/android/

--
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: Consuming Web Service with Complex Types in Android

After looking around at other posts, I ran across this that seems to be helping people with SOAP.

http://stackoverflow.com/questions/297586/how-to-call-soap-web-service-with-android

Hope that helps out.

Steven
Studio LFP
http://www.studio-lfp.com

--
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: App is killed when home button is pressed from any activity

Check out some of the information here:
http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html#Clearing

See if that can help you out any. That entire page is worth a read to understand how Android handles applications and their activities.

Steven
Studio LFP
http://www.studio-lfp.com

--
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] The RenderScript funtions rsUnpackColor8888 and rsPackColorTo8888 do not work as expected.

The following RenderScript code does not work as expected.


void root(const uchar4 *v_in, uchar4 *v_out, const void *usrData,
uint32_t x, uint32_t y) {
float4 f4 = rsUnpackColor8888(*v_in); // unpack the color data
*v_out = rsPackColorTo8888(f4); // repack the color data
without changing it
rsDebug("in ", v_in->x, v_in->y, v_in->z, v_in->w);
rsDebug("in ", f4.x, f4.y, f4.z, f4.w);
rsDebug("in ", v_out->x, v_out->y, v_out->z, v_out->w); // v_out
does not equal v_in!!!!!! Each uchar > 0 is reduced by 1
}

void filter() {
rsForEach(gScript, gIn, gOut, 0);
}

This code should just copy the data unchanged but it alters every
value not equal to zero! The error seems to be in rsUnpackColor8888
since a color value of 255 is converted to 0.9985 and not 1.0.

--
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] going back and forth from FullScreen

Hi,

I have an application that sets fullscreen with

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

... right before the view is created. Works fine.

However, i would like to bypass an Android BUG that prevents a screen
change being sent when the IMM opens and its in full screen. For this,
my idea was to

1. disable full screen
2. show the IMM
3. hide the IMM
4. re-enable full screen

Steps 1-3 works fine, but re-enabling full screen does not work (the
taskbar is still there).

Is this another bug or is it an expected behaviou? How can i force the
fullscreen to be applied?

thanks

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: BitmapFactory.decodeResource returning null sometimes for local resource

I got a null pointer when my PNG file was incorrectly saved.   Since I was developing on Linux, I loaded it into GIMP and saved it back out and it loaded.  So you might check using one of the image files supplied in the SDK.

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

GWT Designer and Google Maps

Hi everybody, i'm using eclipse and gwt designer with UiBinder, i
would like to kwon how can i configure the designer palette to add the
MapWidget so when i will have to desing my project i going to can drag
and drop the Map into the page.

Thanks

--
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: uploading large file fails

i already have changed to post_max_size=800M and upload_max_filesize =
800M, and still don't work, am i doing something wrong?
On Sep 29, 3:06 pm, Ryan Schmidt <google-2...@ryandesign.com> wrote:
> On Sep 29, 2011, at 15:01, aortizhi wrote:
>
> > When i select a file that
> > is not that big, it uploads ok, but when i am trying to upload a file
> > that is at least 58 MB it fails uploading and the file won't be the
> > same at server side.
>
> http://php.net/upload-max-filesize
>
> The default max is 2MB in PHP 5.3.8.

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


Real Estate