[google-appengine] Re: Search API: How come "Ondřej" matches "ondrej"? I need to mimic that in browser.

2015-01-05 Thread Jaroslav Záruba
Well, simply deunicoding/asciifying the strings will have to do.

On Friday, January 2, 2015 8:58:53 AM UTC+1, Jaroslav Záruba wrote:
>
> Hello
>
> For optimization purposes (within browser) I need to mimic whatever 
> processing is done to the "needle" string before it is matched against the 
> indexes.
> Basically it means to translate "weird" characters into their "boring" 
> (and lowercase) representations:
>
>- ř,Ř => r
>- ě,é,ë,Ě,É,Ë => e
>- ...
>
> What approach should I take to get as close as possible to what the Search 
> API does?
>
> Cheers
>   Jarda
>

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


[google-appengine] Re: Search API: How come "Ondřej" matches "ondrej"? I need to mimic that in browser.

2015-01-05 Thread Renzo Nuccitelli
In Python version I use the ComputedProperty to normalize the string from a 
property. After that it is only a question of normalize the user input a 
make the search on the computed property. You can search for prefixes with 
a code like this:

https://github.com/renzon/gaepermission/blob/master/gaepermission/model.py#L38

This way, you avoid that "Zuper" appears when you are searching for "Super" 
prefix.

For normalization itself I use this lib:

https://github.com/un33k/python-slugify

It is used to generate slugs, but it can be used for normalization as well.

Regards,

On Monday, January 5, 2015 7:38:56 AM UTC-2, Jaroslav Záruba wrote:
>
> Well, simply deunicoding/asciifying the strings will have to do.
>
> On Friday, January 2, 2015 8:58:53 AM UTC+1, Jaroslav Záruba wrote:
>>
>> Hello
>>
>> For optimization purposes (within browser) I need to mimic whatever 
>> processing is done to the "needle" string before it is matched against the 
>> indexes.
>> Basically it means to translate "weird" characters into their "boring" 
>> (and lowercase) representations:
>>
>>- ř,Ř => r
>>- ě,é,ë,Ě,É,Ë => e
>>- ...
>>
>> What approach should I take to get as close as possible to what the 
>> Search API does?
>>
>> Cheers
>>   Jarda
>>
>

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


[google-appengine] Re: messageSource bean: ResourceBundle$Control is a restricted class

2015-01-05 Thread Jaroslav Záruba
I was hoping I could avoid that somehow, but I guess there's no way around 
it, I will change the encoding.

Thank you, Vinny! :)

On Sunday, January 4, 2015 2:41:46 AM UTC+1, Jaroslav Záruba wrote:
>
> Hello
>
> What is the proper way of using message sources on AppEngine please?
>
> This is what I've bumped into:
> java.lang.NoClassDefFoundError: java.util.ResourceBundle$Control is a 
> restricted class. Please see the Google App Engine developer's guide for 
> more details. at 
> com.google.apphosting.runtime.security.shared.stub.java.util.ResourceBundle$Control.(ResourceBundle.java)
>  
> at 
> org.springframework.context.support.ResourceBundleMessageSource.doGetBundle(ResourceBundleMessageSource.java:313)
>  
> at 
> org.springframework.context.support.ResourceBundleMessageSource.getResourceBundle(ResourceBundleMessageSource.java:268)
>  
> at 
> org.springframework.context.support.ResourceBundleMessageSource.resolveCodeWithoutArguments(ResourceBundleMessageSource.java:231)
>  
> at 
> org.springframework.context.support.AbstractMessageSource.getMessageInternal(AbstractMessageSource.java:218)
>  
> at 
> org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:151)
>  
> at 
> org.springframework.context.support.DelegatingMessageSource.getMessage(DelegatingMessageSource.java:66)
>  
> at 
> org.springframework.context.support.AbstractApplicationContext.getMessage(AbstractApplicationContext.java:1122)
>  
> at 
> org.thymeleaf.spring4.messageresolver.SpringMessageResolver.resolveMessage(SpringMessageResolver.java:151)
>  
>
> Nothing special here:
>  *"org.springframework.context.support.ResourceBundleMessageSource"*>
>
>
>
>
>
> 
>
>
> Regards
>   Jarda
>
>

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


[google-appengine] Re: messageSource bean: ResourceBundle$Control is a restricted class

2015-01-05 Thread Jaroslav Záruba
Changing the encoding didn't help in the end. I downloaded sources and it 
turns out the cache configuration was the issue:

if((this.defaultEncoding != null && !"ISO-8859-1".equals(this.
defaultEncoding)) || !this.fallbackToSystemLocale || this.cacheMillis >= 0)
return ResourceBundle.getBundle(basename, locale, 
getBundleClassLoader(), new MessageSourceControl());


...mine was set to "0" for development.

On Sunday, January 4, 2015 2:41:46 AM UTC+1, Jaroslav Záruba wrote:
>
> Hello
>
> What is the proper way of using message sources on AppEngine please?
>
> This is what I've bumped into:
> java.lang.NoClassDefFoundError: java.util.ResourceBundle$Control is a 
> restricted class. Please see the Google App Engine developer's guide for 
> more details. at 
> com.google.apphosting.runtime.security.shared.stub.java.util.ResourceBundle$Control.(ResourceBundle.java)
>  
> at 
> org.springframework.context.support.ResourceBundleMessageSource.doGetBundle(ResourceBundleMessageSource.java:313)
>  
> at 
> org.springframework.context.support.ResourceBundleMessageSource.getResourceBundle(ResourceBundleMessageSource.java:268)
>  
> at 
> org.springframework.context.support.ResourceBundleMessageSource.resolveCodeWithoutArguments(ResourceBundleMessageSource.java:231)
>  
> at 
> org.springframework.context.support.AbstractMessageSource.getMessageInternal(AbstractMessageSource.java:218)
>  
> at 
> org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:151)
>  
> at 
> org.springframework.context.support.DelegatingMessageSource.getMessage(DelegatingMessageSource.java:66)
>  
> at 
> org.springframework.context.support.AbstractApplicationContext.getMessage(AbstractApplicationContext.java:1122)
>  
> at 
> org.thymeleaf.spring4.messageresolver.SpringMessageResolver.resolveMessage(SpringMessageResolver.java:151)
>  
>
> Nothing special here:
>  *"org.springframework.context.support.ResourceBundleMessageSource"*>
>
>
>
>
>
> 
>
>
> Regards
>   Jarda
>
>

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


[google-appengine] Re: Google AppEngine Account/Projects Gets Suspended Every time I Pay Google

2015-01-05 Thread Luke Stone
Hello Anand, 

I've escalated this issue at Google and people are looking at your case 
specifically and at the suspension & appeal process generally.  I 
understand it's terribly disruptive when your account is suspended. 

Regards, 

-Luke

On Wednesday, December 31, 2014 6:40:33 PM UTC-8, Anand Hariharan wrote:
>
>
> This has been happening to me consistently for last 2 weeks. Each time I 
> have paid Google AppEngine for services, they have sent me an email saying 
> "Policy Violation" and then a series of emails start flowing suspending one 
> account after the other. Does ANYONE know why this happens? Google 
> AppEngine Cloud Compliance team seems to be handling it - they pretty much 
> box you down and don't respond to emails or tell you why the problem is 
> happening. Now I am completely locked out of Google AppEngine - they told 
> me last week all is well and restored access and this week - complete lock 
> down - no option even to appeal and understand What is causing the problem. 
>

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


[google-appengine] Re: App Engine Account Suspended

2015-01-05 Thread Luke Stone
I agree that we (at Google) should be super helpful about un-suspending 
valid accounts.   We will use this feedback to improve our procedures - I 
sincerely appreciate it. 

-Luke

On Wednesday, December 31, 2014 6:44:31 PM UTC-8, Anand Hariharan wrote:
>
> Wayne, am having the same issue and it is completely 1 sided approach from 
> Google. 
>
> They suspended my account within 30 minutes of my paying Google AppEngine 
> USD 50/- for services. They don't give any reason whatsoever so that I can 
> resolve the issue. Completely UNHELPFUL approach from Google AppEngine 
> team. Am fully locked out now and can't even deploy updates to my website. 
>
> On Tuesday, 2 December 2014 17:33:19 UTC+5:30, Wayne Smith wrote:
>>
>> My google Apps account was recently suspended and has now been 
>> reactivated, although I am still unable to access the google app engine.
>>
>> When attempting to log in i'm redirected to a page giving the account 
>> suspended notification. Filling in the contact form just results in an 
>> automated email suggesting my apps administrator has suspended the account, 
>> I am the apps administrator and this is not the case.
>>
>> Any suggestions on how I am able to contact support to resolve this issue 
>> would be greatly appreciated.
>>
>

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


[google-appengine] Re: App Engine Account Suspended

2015-01-05 Thread Luke Stone
Hi Wayne, 

Ping me privately if you're still having a hard time with your account on 
Google Cloud Platform. 

-Luke



On Wednesday, December 3, 2014 11:41:54 AM UTC-8, Wayne Smith wrote:
>
> My apps account is only used for admin and so not logged into on any 
> regular basis. On 19th July it was compromised and used to send out a bulk 
> load of spam emails, at which point it was suspended by google who did't 
> give us any notification of this at all. It's only recently that I 
> attempted to login to add a user and discovered the account had been 
> suspended. 
>
> Contacting Google was a nightmare, with each reply just saying we hold a 
> free apps account and support is not given. After various posts on the 
> google apps forum I finally received help from the support centre. Once in 
> contact they were very helpful and quick to resolve the issue, although I 
> am still left with no access to app engine, which is hosting our currently 
> offline website.
>
> Unfortunately the link you provide does get me far. I am unable to access 
> the Google for Work Support Centre 
>  , account suspended. As a 
> free apps account holder I am unable to access either the email or phone 
> support.
>
> All other user accounts on our domain are able to access app engine 
> without issue, so this is just related to my user.
>
> Wayne
>
>
> On Wednesday, 3 December 2014 19:02:54 UTC, Kaan Soral wrote:
>>
>> This is extreme, why was your account suspended? (I think google accounts 
>> shouldn't be suspended easily, as we probably all depend on google for many 
>> things, work/life related)
>>
>> I always steer away from help documents like these, yet this one might be 
>> useful: https://support.google.com/cloud/answer/3420056
>>
>

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


[google-appengine] git push: Server aborted the SSL handshake

2015-01-05 Thread Tommy Maloney
Less than 3 days ago I was able to push to my appengine repo using:
git push appengine master

Just tried to push today and am getting the error:

fatal: unable to access "[repo_url]": Server aborted the SSL handshake

Any ideas?


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