Monday, January 28, 2013

Do you know Randa WH, Rameesa Rami and 8 others?

facebook
People You May Know
Add the people you know to see their photos and updates.
Randa WH
IAEHSS
Friends with Ismail Ifran, Abshar Shamsuddeen and 27 others
Add Friend
Rameesa Rami
National College Of Pharmacy
Add Friend
Shemsiya Edathil
Rani Public School
Friends with Ameen Mubarack, Shoukath Shouky and 25 others
Add Friend
Munfida CH
Calicut, India
Add Friend
Yasar Ibrahim
Jnmghss
Friends with Ramnas Abdul Nasar, Fairooz Vc and 6 others
Add Friend
Hidash Hidash
The Central School - Dubai
Add Friend
Afreed Ayyoob
I A E H S S Kottakkal
Friends with Rèmìnshäb MìKù, Muhammed Shilaj and 29 others
Add Friend
Adil Musthafa
IAEHSS
Friends with Ismail Ifran, Muhammed Shakir and 40 others
Add Friend
Ramees Rameeskatameri
Kozhikode (Calicut), India
Friends with Safvan Safio, Shahin Katameri and 17 others
Add Friend
Harshadkk Harshadkk
Friends with Afnas Musthafa and Abdul Mubeen
Add Friend
Find More Friends
Go to Facebook
This message was sent to twitterboyz@gmail.com. If you don't want to receive these emails from Facebook in the future, please unsubscribe.
Facebook, Inc., Attention: Department 415, PO Box 10005, Palo Alto, CA 94303

Friday, January 25, 2013

Re: [Rails] Access Client's File System from Rails application deployed at Heroku (for instance)

On Fri, Jan 25, 2013 at 8:44 PM, sagar p. <lists@ruby-forum.com> wrote:
> Part of the Rails application, I want to let the client keep the
> location string of a video file in the database at Heroku(My plan is to
> deploy the application at Heroku). So, when the client wants to access
> his or her file, the Rails application gets the location string from the
> database and opens the matching local file from his or her computer. Is
> this possible???

You wish to keep the path of a file that exists on the user's local
machine in your database in the cloud, and pass it back to the user?

I cannot begin to see how this would be possible unless your user had
a server running on their localhost that could serve up the file.

Trying to set a URL like `file:///home/username/somefile` cannot work
when you set it in a web page:

<a href="file:///home/username/somefile">somefile</a>

does not work when your web page is being served from elsewhere. Try
it. There are extremely good reasons for this.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

[Rails] Re: Re: Access Client's File System from Rails application deployed at Heroku (for instance)

Thank you both of you.

Regards,
Sagar

Jordon Bedwell wrote in post #1093870:
> On Fri, Jan 25, 2013 at 9:48 PM, Jordon Bedwell <envygeeks@gmail.com>
> wrote:
>> On Fri, Jan 25, 2013 at 9:24 PM, sagar p. <lists@ruby-forum.com> wrote:
>>> I apologize if I am unclear. My question was to access client's local
>>> file system, not the Heroku's. I wonder if your answer still sticks to
>>> 'NO'.
>>
>> This is exactly what my "no, just no" referred to. And not for any
>> more reason than it's a huge security risk that you should not throw
>> you or your users into unless you absolutely know what you are doing
>> and they absolutely understand the risk they are taking.
>
> To elaborate there are other reasons why the no applies, but this is
> the only reason I care about.

--
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 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.
For more options, visit https://groups.google.com/groups/opt_out.

[Rails] Re: Access Client's File System from Rails application deployed at Heroku (for instance)

Thank you, Jordon and Dave.

I apologize if I am unclear. My question was to access client's local
file system, not the Heroku's. I wonder if your answer still sticks to
'NO'.

S3 is not an option for me right now, because the application would
require user to save the video clip and get ready for another clip in a
matter of 20-30 seconds. Also, the application would be used in an area
where the internet speed is not that high (about 128 kbps). So, I want
to minimize the network traffic as much as possible.

Regards,
Sagar

Dave Aronson wrote in post #1093867:
> On Fri, Jan 25, 2013 at 9:44 PM, sagar p. <lists@ruby-forum.com> wrote:
>
>> the Rails application gets the location string from
>> the database and opens the matching local file
>> from his or her computer. Is this possible???
>
> To expand on Jordon's "Just no":
>
> Heroku does not provide any local filesystem whatsoever. The only
> files you can count on being there, are what your uploaded application
> initially installs. The whole point of cloud-based automagically
> scaling solutions like Heroku is that (assuming you spring for the
> non-free plans) you get new resources spun up and down as needed.
> Obviously they won't have all the local files that your app has
> created.
>
> HOWEVER...
>
> There is a common solution to this, namely cloud *storage*. Store the
> files on Amazon S3 or some such, and it will be a bit more complex
> than local storage but still quite feasible... and cheap so long as
> you don't store huge files or a huge number of them.
>
> -Dave
>
> --
> Dave Aronson, the T. Rex of Codosaurus LLC,
> secret-cleared freelance software developer
> taking contracts in or near NoVa or remote.
> See information at http://www.Codosaur.us/.

--
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 https://groups.google.com/groups/opt_out.

Where do I place a CSV file so that it can displayed DYGraph Visualization in the Browser?

Hi,

I am trying to use DYGraphs to have a Charting utility in my Web Browser. The instructions say "Make sure your CSV file is readable and serving from a place that understands XMLHttpRequest's". Where should I place this file in my Django Project? I can get the tool to display the chart, if I have the CSV values hard coded in my JS script.

Thanks in advance!
Naval

--
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.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: [Rails] Access Client's File System from Rails application deployed at Heroku (for instance)

On Fri, Jan 25, 2013 at 9:44 PM, sagar p. <lists@ruby-forum.com> wrote:

> the Rails application gets the location string from
> the database and opens the matching local file
> from his or her computer. Is this possible???

To expand on Jordon's "Just no":

Heroku does not provide any local filesystem whatsoever. The only
files you can count on being there, are what your uploaded application
initially installs. The whole point of cloud-based automagically
scaling solutions like Heroku is that (assuming you spring for the
non-free plans) you get new resources spun up and down as needed.
Obviously they won't have all the local files that your app has
created.

HOWEVER...

There is a common solution to this, namely cloud *storage*. Store the
files on Amazon S3 or some such, and it will be a bit more complex
than local storage but still quite feasible... and cheap so long as
you don't store huge files or a huge number of them.

-Dave

--
Dave Aronson, the T. Rex of Codosaurus LLC,
secret-cleared freelance software developer
taking contracts in or near NoVa or remote.
See information at http://www.Codosaur.us/.

--
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 https://groups.google.com/groups/opt_out.

Re: [Rails] Access Client's File System from Rails application deployed at Heroku (for instance)

On Fri, Jan 25, 2013 at 8:44 PM, sagar p. <lists@ruby-forum.com> wrote:
> Part of the Rails application, I want to let the client keep the
> location string of a video file in the database at Heroku(My plan is to
> deploy the application at Heroku). So, when the client wants to access
> his or her file, the Rails application gets the location string from the
> database and opens the matching local file from his or her computer. Is
> this possible???

No. Just no.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

[Rails] Access Client's File System from Rails application deployed at Heroku (for instance)

Part of the Rails application, I want to let the client keep the
location string of a video file in the database at Heroku(My plan is to
deploy the application at Heroku). So, when the client wants to access
his or her file, the Rails application gets the location string from the
database and opens the matching local file from his or her computer. Is
this possible???

--
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 https://groups.google.com/groups/opt_out.

Re: Moving a Django website to another server

I was looking for a consistent and error-free deployment as I switch
between servers frequently despite using the same public domain. rsync
was great but I had to manually reload server thereafter or issue a
syncdb, etc.

I have since moved to Fabric for my deployment needs. See
http://docs.fabfile.org/en/1.5/tutorial.html.
With Fabric, I only need to issue one command for daily deployment to
existing or new server, e.g. fab deploy, under my Django project
directory to deploy the project.

On Sat, Jan 26, 2013 at 9:04 AM, Adrián Espinosa
<mortuuslordofdeads@gmail.com> wrote:
> If both hosts are Linux, you can use "rsync -avuzr source destination".
> Option -z enables compression
>
> On Friday, January 25, 2013 11:20:49 AM UTC+1, John Robertson wrote:
>>
>> Hi there, if I want to move a Django website to another host, is it as
>> simple as copying across all the site files and DB (and changing config
>> files)? If so, is there some kind of tool to create a zipped folder of the
>> website so that FTP does not take several hours! Sorry if this seems a very
>> basic question, but I just wanted to check before I proceed with it. They
>> are fairly simple, small sites, but still there are thousands of files.
>>
>> Many thanks!
>> John
>
> --
> 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.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
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.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Moving a Django website to another server

If both hosts are Linux, you can use "rsync -avuzr source destination". Option -z enables compression 

On Friday, January 25, 2013 11:20:49 AM UTC+1, John Robertson wrote:
Hi there, if I want to move a Django website to another host, is it as simple as copying across all the site files and DB (and changing config files)? If so, is there some kind of tool to create a zipped folder of the website so that FTP does not take several hours! Sorry if this seems a very basic question, but I just wanted to check before I proceed with it. They are fairly simple, small sites, but still there are thousands of files.

Many thanks!
John

--
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.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: [android-developers] ListView select a row

here's what i'm trying now - in my theme file

    <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
        <!-- API 11 theme customizations can go here. -->
       
        <item name="my_color">?android:attr/selectableItemBackground</item>
    </style>

where my_color is defined in attrs.xml as

         <attr name="my_color" format="reference" />


can i retrieve the color in my code - if so how?


--
--
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] ListView select a row

having trouble setting it.

    <ListView
        android:id="@+id/listView"
        android:listSelector="@android:drawable/activatedBackgroundIndicator"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >
    </ListView>

not working - what am i doign wrong

--
--
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] UnknownHostException is not logged

Thanks for responding.  I can see the reasoning.  Just seems weird that the behavior isn't documented, and that there's no way for me to override it.  I'll file a bug for updating the Javadoc.

On Friday, January 25, 2013 2:40:10 PM UTC-8, Robert Greenwalt wrote:
You can always do the dns lookup yourself and log an error if it's invalid.  The DNS cache will ensure it's not wasted effort.


On Fri, Jan 25, 2013 at 2:39 PM, Robert Greenwalt <rgree...@google.com> wrote:
I think the log was getting quite full of these exceptions (mobile devices often don't have a network and apps aren't so good at checking that first) so we stopped logging them.  If you look at the blame for this code you can see the reasoning.



On Fri, Jan 25, 2013 at 2:31 PM, Boris Burtin <bbu...@gmail.com> wrote:
I was racking my brain, trying to figure out why one of my users was having trouble connecting and nothing was in the logs.  Finally I looked at the Android source and realized that the logging code explicitly ignores UnknownHostException.  Even worse, the Javadoc doesn't specify this behavior.

Does this sound like a bug to anyone, as opposed to a feature?  In my case, the user enters the hostname, so it's possible to get this exception while the user has a network connection.

    /**
     * Handy function to get a loggable stack trace from a Throwable
     * @param tr An exception to log
     */
    public static String getStackTraceString(Throwable tr) {
        if (tr == null) {
            return "";
        }

        // This is to reduce the amount of log spew that apps do in the non-error
        // condition of the network being unavailable.
        Throwable t = tr;
        while (t != null) {
            if (t instanceof UnknownHostException) {
                return "";
            }
            t = t.getCause();
        }

        StringWriter sw = new StringWriter();
        PrintWriter pw = new PrintWriter(sw);
        tr.printStackTrace(pw);
        return sw.toString();
    }

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d...@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
 
 

[android-developers] Re: Translation using dictionary offline

It sounds like you will want to use the HashMap class with the German word as the key and the English word as the value.



On Thursday, January 24, 2013 2:23:00 AM UTC-6, sam jeck wrote:
i am dealing with a mobile application where it should perform a translation of words which works offline-(not online using any api -bing/google). how can we perform any translation of words (like german--->english). just like WORDLENS/any offline translator works.




thanks in advance
sam jeck.

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

Components vs Helpers vs Utilities

Im trying to wrap my head around utilzing some functionality at all levels of MVC. Right now, I'm writing a component that performs several date functions for my app (the date utility is insufficient for what Im doing). The problem is I need the these functions in both my models and views as well. I'd imagine writing my own Utility is the best option as it can be used anywhere but they seem "off limits" as they are only contained within the Lib. I also cant find any information on writing a Utility. Yes, I could just go write one and add it to Lib/Utilities but I'm looking for some feedback on this issue as I've faced it several times. If you need to share functionality between all layers of the MVC, is using utilities the only way to do it without having to load a component/helper/behavior on the fly?
Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

ImageField upload_to issue

Hello, folks!

Here is the relevant part of my model:
    def i_upload_to(instance, filename):          return '/'.join([strftime('i/%y%m/%d'), filename])        def t_upload_to(instance, filename):          return '/'.join([strftime('t/%y%m/%d'), filename])        class Image(models.Model):          image = models.ImageField(upload_to=i_upload_to, blank=True)          thumbnail = models.ImageField(upload_to=t_upload_to, blank=True)

It works as expected, but it's really ugly, terrible code. Let's try to make it a little better:
    def upload_path(p):          return lambda instance, filename: '/'.join([p, strftime('%y%m/%d'), filename])

    class Image(models.Model):          image = models.ImageField(upload_to=upload_path('i'), blank=True)          thumbnail = models.ImageField(upload_to=t_upload_path('t'), blank=True)

In this case 'image' will be uploaded where expected (e.g. 'i/1301/26'), but thumbnail will be uploaded to directory like 't/1301/25/i/1301/26/' instead of 't/1301/26'.

Any opinions? Where do I make a mistake?

Thank you in advance for any advice.

--
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.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: [android-developers] Re: android imageview stretch to background height and keep ratio

I've done many things exactly like that, worked fine for me. You can always just assign a specific height to the parent, it will prevent any child from expanding it. And can always just implement you own view that matches its size to its parent.
Either way, by using wrap_content you'll never achieve what you want. 

On Friday, January 25, 2013 7:59:38 AM UTC+2, Greenhand wrote:
Because if I changed the two "inner" image views to match_parent, they will expand the background imageview and its parent (RelativeLayout). It did not work.
 
What I would like to do is let the inner imageviews resized automatically to "exactly match" the background. If it is smaller, it will stretch to the height of the background. If it is bigger, it will shrink to the height of the background.
 
By the way, I think the "match_parent" attribute in Android is literally misleading because it will make its parent bigger to "match_parent".
2013/1/25 Piren <gpi...@gmail.com>
if every imageview's height is wrap_content, why are you expecting them all to be the same (when all their sources are different sizes)? AdjustViewBounds isnt a magical property :)
the two "inner" imageviews should be match_parent.

it's also a good idea to define scaleType since it has the most relevancy when talking about keeping the image ratio.


 

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

Getting related values from map table with foreign keys

Hi,

I'm building an app that has some text with tags, the tags are mapped to the text through a mapping table (toxi model).
Something like that:
TEXTID <------>TAGID<------>TAGID
TEXT              TEXTID         TAG
What would be the best way to display the text and its tags?

I'm very new to django, and programming in any case,  I can create a list for the texts for a certain user, but I don't see how to add only the tags for that text in the same list or create somehow a hash with both values.

Is there a django way to do this?

Thanks,
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.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: Any way to check url before redirect?

On Fri, Jan 25, 2013 at 7:07 AM, LDSign <frank@lamozik.de> wrote:
> Thank you :) Thats a good starting point, but how do I check there if
> the redirect will be successfull?

It depends on what these URLs are pointing to. Are they all defined in
routes.php? Check Router::routes and compare. Do you have static
pages? Parse the $url (array or string) and check that the ctp file
exists. Are your pages instead in the DB? Again, parse $url and check
if the target exists.

If doing the latter, you really should have a cache file containing
all your page routes and have Router connect to them all, so this
should be covered by the first option.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.

Re: Simple Poll

On Thu, Jan 24, 2013 at 9:14 PM, Advantage+ <movepixels@gmail.com> wrote:
> I need to create a simple poll for users and stumped on saving the results
> when user submits the poll.
>
> Poll hasMany Question
>
> Poll hasMany Result
>
> Question hasMany Choice

This is how I did it:

Poll
hasMany PollQuestion
PollOption
belongsTo PollQuestion
hasMany PollVote
PollVote
belongsTo PollOption

The only model that needs to be directly associated with Poll is
PollQuestion. The others chain together.

> Pretty simple, but how do you save the results since viewing the poll
> creates a form to save Poll?
>
>
> View the poll/$id pulls all the questions and choices for each, but how /
> where to save the results?
>
> What would be the correct table for this? poll_results? results?
>

Save the result in poll_votes. I made my PollsController handle
everything. In the vote() action:

$this->Poll->PollQuestion->PollOption->PollVote->save()

The table only requires id, poll_option_id, and user_id columns, but
should include created as well.

In Poll::afterFind(), loop through the various questions, then each of
its options, summing the number of votes for each. Add a new 'total'
key in the data array with the results.

foreach($data as $k => $d)
{
if ( isset($d['PollOption']) && isset($d['PollOption'][0]['PollVote']) )
{
$data[$k][$this->alias]['total'] = 0;

/* sum individual and grand total of votes
*/
foreach($d['PollOption'] as $j => $option)
{
$total = sizeof($option['PollVote']);

$data[$k]['PollOption'][$j]['total'] = $total;
$data[$k][$this->alias]['total'] += $total;
}

/* get percentage only if not multiple select
*/
foreach($data[$k]['PollOption'] as $j => $option)
{
$per_cent = $option['total'] > 0
? floor( ( $option['total'] * 100 ) / $data[$k][$this->alias]['total'])
: 0;

$data[$k]['PollOption'][$j]['per_cent'] = $per_cent;
}
}
}

The "multiple select" thing is because some questions nneded to be
multiple choice. And therein was the cause of much grief, as I recall.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.

Re: GWT 2.5 and IBM JVM problems

IIRC, there's an issue open in the tracker with a workaround (a system property to ignore the gwtar files)

--
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.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Re: 2 projects, 2 apps, bad templates ...

On Thu, Jan 24, 2013 at 7:38 PM, Tomas Neme <lacrymology@gmail.com> wrote:
> just to clarify:
> <snipped>

Whoa, that really helps clarify the setup!!! Very helpful! Thank you Tomas!!!

Until we can convert to virtual envs, your suggested solution(s) and
fixes should make me sleep easier at night.

Have an awesome day! :)

Cheers,
M

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Re: [android-developers] Re: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

We can tell you're new to development, and spelling too.

On Wednesday, July 22, 2009 10:28:50 AM UTC-7, astrocogz wrote:

I'm new to this whole thing about being a developer but, if you think making your app hack safe and, your app's are not going to lose you your user base. Then say a hello to the new world order of android. Stop bitching and think of it as contributing to your community. I don't steel but I don't look a gift horse in the mouth either so shut up and programme like your told and stop helping to force the world in to a new world police globe or pay the hundred and move to iphone.

--
--
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] ListView select a row

I have a ListView with a ListAdapter.

When the user clicks on a row - i'd like to show that row as selected
(i.e. hilighted).

actually make it a toggle.

how do i do that.

--
--
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: Moving a Django website to another server

Bill has a point, I assumed both were VPSs that had the same services,
software and directory structures. If you change that, then it will be
a bit more of work :)

2013/1/25 Bill Freeman <ke1g.nh@gmail.com>:
> What kind of hosts? if both are linux, then tar is your friend, using the
> -z or -j options
> to create compressed archives, though zip and unzip commands are likely
> available
> too. If you use ftp (faster, but less secure than scp/sftp), be sure to
> transfer in binary
> mode (text is the default, and will cause problems for bytes in the
> compressed file
> that look like carriage return or line feed).
>
> Whether it is just a matter of copying "everything" depends on how
> compatible the
> two machines are. For example, if you are using the system's base python,
> rather
> than installing one of your own, and the two are different versions, they
> .pyc files
> will not be compatible. Also, if you installed django and other apps
> naively, they
> may be in directories that you aren't copying. It is also possible that
> there are
> dependencies (libraries linked against by the egg installers) that are
> missing
> or incompatible on the new box. There are also presumably http server and
> database servers that need to be installed, and which have configuration
> files.
> So, unless you're cloning the whole OS install onto a compatible piece of
> hardware
> (and even there you should do things like fix up the network configuration
> and
> ssh machine keys) I think that you're going to have trouble "just copy"ing.
>
> Bill
>
> On Fri, Jan 25, 2013 at 10:22 AM, Oscar Carballal <pizted@gmail.com> wrote:
>>
>> For our project e-cidadania it was like that, we only had to make a
>> clone of the git repository and we made a symbolic link to the config
>> files (so we can pull the code without affecting the config). After
>> that we made an import into the new database, fix the config files et
>> voilá.
>>
>> You can try SSH if you have it available, via the "scp" command, it's
>> faster and easier in my opinion, but if you only have the FTP
>> available you should take care of the file permissions and user/group.
>>
>> Regards,
>> Oscar Carballal
>>
>> 2013/1/25 John Robertson <linksstreetdesign@gmail.com>:
>> > Hi there, if I want to move a Django website to another host, is it as
>> > simple as copying across all the site files and DB (and changing config
>> > files)? If so, is there some kind of tool to create a zipped folder of
>> > the
>> > website so that FTP does not take several hours! Sorry if this seems a
>> > very
>> > basic question, but I just wanted to check before I proceed with it.
>> > They
>> > are fairly simple, small sites, but still there are thousands of files.
>> >
>> > Many thanks!
>> > John
>> >
>> > --
>> > 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.
>> > Visit this group at http://groups.google.com/group/django-users?hl=en.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>> --
>> 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?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
> --
> 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.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Again, Model and ModelForm validation

Hi everybody,

suppose I have a model and want to add some custom validation to *just
one* of its fields. Using Django 1.4 here.

I expect that specific validation constraint to be used both in my forms
and in my save method.

Should I better use Model clean_fields() method? Or the clean() one? Or
should I better rely on a custom ModelForm? Or, again, should I use a
custom save method?

In each case, how can I then propagate my ValidationError to the form so
that my specific field is highlighted in case the user inserts some
invalid data?

Any snippet or web reference is greatly appreciated.

Cheers, Fabio.

--
Fabio Natali

--
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.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

[android-developers] In-app gives "This version of the application is not configured for billing through Google Play" - But it shouldn't

Ok, I'm having the "This version of the application is not configured for billing through Google Play" on one of our apps. Sorry to ask this again, but I read more then 20 answers about this, and they always say the same things that I already checked:

- The apk installed is signed with the correct key
- The version code of the installed app is the same of the published version on Google Play
- There are no test users
- The license key is correctly set
- The app is published for weeks, so it's not a delay problem

So far, I tried the whole process of compiling, signing, sending to google play and republishing it, but without success.

Should I fill a bug report? Should I update the In App Purchases api to version 3?

--
--
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] Account Query

I know in the U.S. you can get credit cards at the grocery store and load and re-load them.


There are minor convenience fees, but it should work.



On Friday, January 25, 2013 9:10:29 AM UTC-6, krishna wrote:
i have not credit card  so if have then plz 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
 
 

Model and ModelForm validation

Hi everybody.

I am reading this [0] and can't perfectly understand what this line means:

"Note that full_clean() will not be called automatically when you call
your model's save() method, nor as a result of ModelForm validation.
You'll need to call it manually when you want to run one-step model
validation for your own manually created models."

Specifically, I am referring to "nor as a result of ModelForm
validation". Does it mean full_clean() is not called during ModelForm
validation? I was pretty sure it is... Am I wrong? Am I misunderstanding
that English line (I am not a native speaker)?

Cheers, Fabio.

[0]
https://docs.djangoproject.com/en/1.4/ref/models/instances/#django.db.models.Model.full_clean

--
Fabio Natali

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Moving a Django website to another server

For our project e-cidadania it was like that, we only had to make a
clone of the git repository and we made a symbolic link to the config
files (so we can pull the code without affecting the config). After
that we made an import into the new database, fix the config files et
voilá.

You can try SSH if you have it available, via the "scp" command, it's
faster and easier in my opinion, but if you only have the FTP
available you should take care of the file permissions and user/group.

Regards,
Oscar Carballal

2013/1/25 John Robertson <linksstreetdesign@gmail.com>:
> Hi there, if I want to move a Django website to another host, is it as
> simple as copying across all the site files and DB (and changing config
> files)? If so, is there some kind of tool to create a zipped folder of the
> website so that FTP does not take several hours! Sorry if this seems a very
> basic question, but I just wanted to check before I proceed with it. They
> are fairly simple, small sites, but still there are thousands of files.
>
> Many thanks!
> John
>
> --
> 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.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Debug Id (or equivalent) for CellTable elements?

Unfortunately that isn't a real possibility with the way our project is setup. What we ultimately need to do is something along the lines of "Find the first column in the table at the row where the second column has the text ______". If the cell and/or column elements could use the UIObjects debugId stuff, that would be very easy as the cell's have access to the actual object that is put into the row.

Performance isn't the real issue; it's the fact that writing unit tests that are completely dependent on aspects of the table that can be very easily changed (such as CSS class, visible text, column ordering, etc.) is not a path that w want to take. What we have been doing to find UiObjects around the site is calling widget.ensureDebugId() using constant strings, or if the content is dynamic, some sort of knowable addressing scheme (such as formname-username). Unfortunately, there isn't any way to do this on cell or column elements.

On Friday, January 25, 2013 9:14:53 AM UTC-5, Lukasz Plotnicki wrote:
What about using XPath and combining different attributes,e.g 

driver.findElement(By.xpath("//div[contains(@class,'menuTitle') and contains(.,'Register Menu')]"))

We are using it and are quite happy as it is panel/layout-structure independent. The performance is not as good as with By.id, but acceptable. 


Am Donnerstag, 24. Januar 2013 15:16:08 UTC+1 schrieb jacob....@gmail.com:
Hi,

I'm trying to setup Selenium unit testing for my project, and I'm wondering if there is any equivalent to UiObject.ensureDebugId() for elements in a CellTable, such as Column, Header, or any of the various Cell types. What I have been doing is override the Column.render() method to dynamically insert a div with an ID that I can find later, but this seems very hacky and counter-intuitive. I can't seem to find any way to do this for the Header element though.

Using xpath to find elements in the table is not an option, as our unit tests can't be tied to the structure of the GUI staying exactly the same. For the same reasons, trying to find elements by text or tag name (etc. etc.) wouldn't work either.

Is there something I'm missing here, or do the CellTable elements not provide this functionality?

--
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.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


Real Estate