Re: [android-developers] Android GCM without a 3rd party server (Device to Device push notification without 3rd party server via GCM)

Yes, I believe we are talking about the same key (I did only a brief check on GCM documentation and thought it's called Sender Id, my bad). Still, I am not exactly sure how Google reacts if/once you start sending push notifications from multiple IPs. I tend to think people are usually limiting the IP space allowed to send notifications instead of depending on no filtering takes place at all.

But if this is not an issue, I see absolutely no reason why this couldn't work.

--
H

On Jul 8, 2014 8:39 PM, "MS" <ms.jacksparrow@gmail.com> wrote:
Hi Harri Smatt,

Sender Id needs to be in the App to register with GCM server and get the GCM ID. I believe you are referring to GCM API key.

We will be encrypting the GCM API Key in our app. 
On top of that we will be using DexGuard to obfuscate the code.
And more over sending message to GCM is an HTTPS call.
Considering all the above, we think that it should be secure enough.

Thanks a lot for your reply. Do you foresee any other issues?

Varun 


On Tuesday, 8 July 2014 22:24:17 UTC+5:30, Harri Smatt wrote:

On 7 Jul 2014, at 16:38, MS <ms.jack...@gmail.com> wrote:

Are we missing anything by not choosing to push via our own server? 

Is following such an implementation correct?



Guess it works - but isn't it any concern to you that you need to bundle your Sender Id, usually stored only on 3rd party application server, within the application?

And, well, can't tell how Google reacts once their GCM server gets hammered from millions, if not trillions, different IPs with your Sender Id.

H

--
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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: [Rails] Re: Help on specifying color using color code

On 9 July 2014 07:36, Maitreya Dwaipayan <maitreya@bidstalk.com> wrote:
> Newb Newb <lists@...> writes:
>>
>> Hi All,
>>
>> In my application i am using Spreadsheet::Excel gem for export to excel.
>>
>> Kindly let me know your suggestions.
>>
>> Thanks for your time.
>
>
> Check this out - http://andisxp.blogspot.in/2011/12/export-to-excel-with-
> spreadsheet-gem.html

Since the post you answered was dated over four years ago I suspect
the OP may have got bored with waiting for an answer and found a way
to get round his problem.

Colin

>
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/loom.20140709T083500-194%40post.gmane.org.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLs%2BzYb%2Bh7E91L2fkfFKsKekShCkRGM59i-bDAtsY-F%2ByA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: GWT distributed builds

Well, we fully rebuild our application because it's quite big, and is developed more or less actively. So if we have enough resources (and we do have them), we can build it in parallel and the question is, does anybody has success story?

воскресенье, 6 июля 2014 г., 21:28:50 UTC+4 пользователь Paul Robinson написал:

Do you really need all 23 permissions several times per hour? Building in parallel is a good idea, but avoiding unnecessary permissions is easy and makes a big difference while developing.

Paul


 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

[android-developers] Re: Compass Reading - proper implementation.



On Monday, March 17, 2014 4:40:21 PM UTC-7, Nathan wrote:
Last time I worked on a compass reading (which was years ago), I did something like this.

A:
http://www.javacodegeeks.com/2013/09/android-compass-code-example.html

Of course, this example has a locked portrait orientation.

So, I call something like this to get it in sync.
http://developer.android.com/reference/android/view/Display.html#getRotation()

Now, I realize that some of the calls in example A are deprecated. Many devices with which I am familiar, though, it actually does work.

That's why, if I were to do a new implementation today, I might consider something like implementation B.  

B:
http://sunil-android.blogspot.com/2013/02/create-our-android-compass.html

I have no good way of testing either method on all of today's gazillion Android devices, so I am going to have to use a best practice, and try to blame the user's device when they don't work.

So my questions are:
1. Does implementation B already take into account landscape/portrait orientation of the device, or should I continue to use Display.getRotation?
2. Are there known devices for which A fails and B works or vice versa?
3. Are there devices with usable sensors for which neither A or B works?
4. Are there any known drawbacks of implementation B?

Nathan


To follow up with my question from a several months ago.

I can confirm that the deprectated Orientation sensor method (method A above) is broken in some devices. Not just wrong values - no values apparently.

Two users at once told me they were getting no compass readings. When two users at once do that, I can expect the problem will soon be widespread.
Xperia M2, and Samsung S4 mini.

A log file from one showed this:
07-08 21:39:35.103 E/SensorManager(15370): sensor or listener is null

I had both implementations in the code, but never really activated method B because of no real testing.

I sent custom apk to one of the users, and method B worked. Both method A and method B work on the Galaxy note 3, which I have.

Method B is much more jittery, and I expect that is the case in all devices. Don't know how to resolve that yet, and haven't seen gimbal lock yet to comment. 

Nathan


--
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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: nginx server not reflecting changes

Yes tried that out but still not working. I am using python 2.7.2 and django 1.4.1.

On Jul 9, 2014 5:59 PM, "Lachlan Musicman" <datakid@gmail.com> wrote:
Have you tried pycclean?

http://stackoverflow.com/questions/785519/how-do-i-remove-all-pyc-files-from-a-project

ie: find . -name "*.pyc" -exec rm -rf {} \;

then restart gnuicorn/nginx.

cheers
L.

On 9 July 2014 22:20, Amar Kamthe <amarkamthe123@gmail.com> wrote:
> Me too having the same issue.
> I tried all the above things like reloading the nginx server and restarting
> the gunicorn but the changes are not reflected.
> Using command ps -aux | grep gunicorn. I found 1 gunicorn master and 3
> worker threads running. I my case few of the files are reflecting but few of
> them don't. Is it that there is an issue with the code files which is not
> allowing to get loaded in nginx?. Also if I try using shell, it do shows the
> changed code and all these thing works perfectly with apache and mod wsgi.
> Can you help me in getting this issue resolved.
>
>
> On Wednesday, January 15, 2014 11:55:16 PM UTC+5:30, Manu wrote:
>>
>> Please find some of my remarks below
>>
>> On Tuesday, 14 January 2014 19:04:19 UTC+5:30, sandy wrote:
>>>
>>>
>>> On Sun, Jan 12, 2014 at 9:48 PM, Manu <manu...@gmail.com> wrote:
>>> >
>>> > Try to reload nginx.
>>> >
>>> >> sudo nginx -s reload
>>> >
>>> >
>>> > or stop it and restart
>>> >
>>> >> sudo nginx -s stop
>>> >> sudo nginx
>>> >
>>> These doesn't make any change.
>>>
>>> >
>>> > if it's still not reflecting those changes, check which settings.py is
>>> > being used by runserver and the gunicorn. Or, the problem could be that you
>>> > have to restart gunicorn
>>> >
>>> >> sudo supervisorctl restart [gunicorn-program-name]
>>> >
>>>
>>
>> How are you so sure that the server is running? Can you try
>>>
>>> $ ps -aux | grep gunicorn
>>
>> What is it returning to you?
>>
>>>
>>> When I use $ps -aux command to see which gunicorn program is running. It
>>> shows no job running, but server is nicely configured and is running. I am
>>> new to nginx and gunicorn deployment. Though deployment has been done but am
>>> not able to understand why the changes are not visible and which program is
>>> running which is behind the deployment.
>>> Your help will be highly appreciated.
>>> Thank you.
>>>
>>>
>>> --
>>> Sandeep Kaur
>>> E-Mail: mkaur...@gmail.com
>>> Blog: sandymadaan.wordpress.com
>>>
>>>
>>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/949ff45f-20be-47b2-8632-afa88ae3b98b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
The idea is that a beautiful image is frameable. Everything you need
to see is there: It's everything you want, and it's very pleasing
because there's no extra information that you don't get to see.
Everything's in a nice package for you. But sublime art is
unframeable: It's an image or idea that implies that there's a bigger
image or idea that you can't see: You're only getting to look at a
fraction of it, and in that way it's both beautiful and scary, because
it's reminding you that there's more that you don't have access to.
It's now sort of left the piece itself and it's become your own
invention, so it's personal as well as being scary as well as being
beautiful, which is what I really like about art like that.
-----------------------------------------------------------------------------------------------------------
Adventure Time http://theholenearthecenteroftheworld.com/

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/XK6PA39t81U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGBeqiMMwxt%3D1jOD2kj540wKyghvbjDEXaJrbn413C0%2B9%2Bx%3DpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALGfcKNMMDjf842%2B91Jef-CyLbf6_JHTSA77t5gFR7aWZFVUdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: nginx server not reflecting changes


On Wed, Jul 9, 2014 at 5:50 PM, Amar Kamthe <amarkamthe123@gmail.com> wrote:
>
> Me too having the same issue.
> I tried all the above things like reloading the nginx server and restarting the gunicorn but the changes are not reflected.
> Using command ps -aux | grep gunicorn. I found 1 gunicorn master and 3 worker threads running. I my case few of the files are reflecting but few of them don't. Is it that there is an issue with the code files which is not allowing to get loaded in nginx?. Also if I try using shell, it do shows the changed code and all these thing works perfectly with apache and mod wsgi. Can you help me in getting this issue resolved.

Well my issue is resolved. All I do after making the changes is :

$ service supervisord reload
$ service nginx reload

--
Sandeep Kaur
E-Mail: mkaurkhalsa@gmail.com
Blog: sandymadaan.wordpress.com



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF66xG0fUUtjcEaJ%3DgUo%2BWydhBZDCtvmmYoTQRVBu9%2B0Fv9Rmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Fighting with sqlcustom

Background: I am new to Django and Python, having started on Windows this past December. Currently I am working in a Vagrant precise64 box, and wanted to import one of my old Windows apps which was done on sqlite3 to my current postgres. Once I got that done, Django told me I would need to run sqlcustom. So I did, and all I've been getting since is one error after another.

The current error is:

django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but se
ttings are not configured. You must either define the environment variable DJANG
O_SETTINGS_MODULE or call settings.configure() before accessing settings.

I am working off Randall Degges' django-skel with Django 1.5, so I have apps, settings, and requirements folders for prod, common, and dev. Prod is working fine on Heroku, where DJANGO SETTINGS MODULE is in the config vars.

Up until now, when I want to do something locally, I use –settings=mylocalsettings, which I got from the Two Scoops book and had been working fine, but not here. The sqlcustom command does not seem to accept or recognize this attempt to direct it to my local settings.

The error message tells me to either set DJANGO SETTINGS MODULE or configure(). I've never come across configure() before. Apparently it is different from –settings=mylocalsettings, but I can't tell you how or why.

I don't want to put DJANGO SETTINGS MODULE in my local environment because I don't know what that would do to either my other projects or my Heroku settings. I am in a virtual environment, but does that isolate the environmental variables? Even if it does, what impact would this have on my Heroku settings for this project?

On the official docs, I found this either or message. But the same document allows for the TwoScoops way, which it calls 'manual'.

I tried django-admin.py but then I got this:

ImportError: Could not import settings 'fed1.settings.dev' (Is it on sys.path?):
 No module named fed1.settings.dev

Note that now there is no database or settings module issue. The path is correct – IF django-admin.py is looking at the directory I am in. I have manage.py but not django-admin.py, which I assume is buried somewhere else in Django itself.

 

Why isn't manual working?

Where do I put configure()? At the top of settings.dev?

Why was manage.py runserver not giving me any errors?

What do I do to get this working?

Bonus: Why don't the instructions also tell me to syncdb or run a migration?

thx.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3884e06b-0b32-4591-8ec1-b88ef17bc039%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.