Tuesday, November 30, 2010

[Rails] template not rendering (unable to retrieve data)

Controller:ads_controller.rb

class AdsController < ApplicationController

def index
@ads = Ad.find(:all)
end

def show
@ad=Ad.find(params[:id])
(params[:id])
end

end


routeing: route.rb

ActionController::Routing::Routes.draw do |map|
map.connect '/ads/', :controller=>'ads', :action=>'index'
map.connect '/ads/:id', :controller=>'ads', :action=>'show'
end


action;index.html.erb
<html>
<head>
<title>All Ads!!<title>
</head>
<body>
<h1>All Ads!</h1>
<ul>
<% for ad in @ads %>
<li><a href="/ads/<%=ad.id %>"><%=ad.name %> </a></li>
<% end %>
</ul>
</body>
</html>


any one know mebay application on head first rails...i am practicing
that one.
this application is all about displaying the list of adds to the
users.
see the above code to display the available ads on an index page ..
but the list of names of ads not displaying when i run this
application
at "http://localhost:3000/ads" whats wrong ...can anybody help me
pls...

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

mat

http://123maza.com/35/silver285/

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

Re: [Lovers India] Need To Know

Hi is there any artist of madhubani painting or any refrence please let me know thanks

On Wed, Dec 1, 2010 at 2:38 AM, gaurav sharma <gaurav731@gmail.com> wrote:
Hi All,

Is their any one from Indore at this group,specially girls if yes then please reply.

--
Regards

Gaurav

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



--
Ravindra kumar
delhi

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

[android-developers] Listview with section headers shows same data under each of the them.

I have been facing the problem.

I tried posting on stackoverflow too. Below is the link.
http://stackoverflow.com/questions/4321329/listview-with-section-headers-shows-same-data-under-each-of-the-them

I have listview with headers. But it shows same list under each
header. Dont know why. On the link of stackoverflow, I have shared it
in detail.

Can some one help me out please?

--
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] Very simple query

Hi guys
I have two queries which should be really simple for you to handle :-

1. All the applications are stored in workspace. I want to call one
application from another applications button on click listener. Is
this possible using intents?

2. How can i pass data from one activity to another. I was making
object of the activity but could not pass the data.
I think there is something called Bundle which is to be added to
intent.

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

3akarat.com - شقة للبيع بمدينتى

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

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

[Rails] Re: how to 'delete' an object from an association collection in-memory only

Lille wrote in post #965224:
> Hi,
>
> My Rails app offers opportunities to try out models on a 'what-if'
> basis, where dependent associations can be modified to obtain
> alternative results for the parent. Is there a way to delete/destroy
> the member of a collection so that I can play around with the
> accordingly modified parent in memory, without actually committing the
> destruction of the collection member to the data store? Based on my
> read of the docs, there is no 'delete' counterpart to
> 'collection.build' for association members.

If it were my app, I think I'd do this differently: start a transaction
for the "what if" stuff, then either roll it back or commit it when
done.

>
> Thanks for any comment,
>
> Lille

Best,

-- 
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org

Sent from my iPhone

--
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 prevent CSRF/XSRF when using RequestFactory

Hi Daniel,

I haven't tested it yet, but I believe you can extend
DefaultRequestTransport as discussed in this thread to set a request
header containing your session ID or other XSRF token:

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e835c3153bc62f4c/751df0dc6aa7eb40?lnk=gst&q=entitymanagerfactory#751df0dc6aa7eb40

HTH,
/dmc

On Tue, Nov 30, 2010 at 10:38 PM, Daniel Cowx <daniel.cowx@gmail.com> wrote:
> Hi guys,
>
> I've been using GWT-RPC up until this point, but would like to make
> the switch to RequestFactory shortly. I'm a bit confused as to how to
> prevent CSRF/XSRF with RequestFactory though.
>
> As per http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ,
> up to this point I've been sending the session ID within the *payload*
> of each RPC. Works great. Should I be doing something similar with
> RequestFactory? Any and all suggestions greatly welcome!
>
> Thanks,
> Daniel
>
> --
> 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.
>
>

--
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

[android-developers] Re: After extracting code to lib widget is no longer working

Anyone? This is really makes my life miserable where's my Google
knight in shiny armor?

On Nov 29, 11:57 am, "droidin.net" <dr...@hireadroid.com> wrote:
> I had a perfectly working widget as part of my project. Then I decided
> to extract common code (including the widget) into the library
> project. After doing this everything works except the widget. It
> appears in the list of widgets available for addition but when I place
> it on the desktop all I get is this toast message: "Application is not
> installed on your phone". Can someone shed light on this? Nether
> configuration nor code has changed. Widget definition exists in both
> meta files (project and lib) with project metafile containing absolute
> (including path) names and all permissions

--
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: php script in django app

Oh ok. Thanks for the quick response. I guess I'll have to rewrite the
script in Python.

On Dec 1, 9:04 am, Javier Guerra Giraldez <jav...@guerrag.com> wrote:
> On Tue, Nov 30, 2010 at 10:51 PM, vamsy krishna <badguitar...@gmail.com> wrote:
> > I am trying to embed an Ajax call to load some RSS feeds using a PHP
> > script in my Django app. This does not work and it returns my actual
> > PHP code which is not getting executed. This works when I try the same
> > outside of Django in Apache.
>
> i guess that it doesn't work when using Django's dev server.
>
> - to execute PHP, you need a PHP interpreter
>
> - Django's devserver is a simple Python HTTP server that translates
> every request into WSGI calls to Django.
>
> so.... should it work?  no way
>
> --
> Javier

--
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: Retrieve Version of another app

Thanks to both.

The PackageInfo was what I needed. I was looking at ApplicationInfo by
mistake.

The discus information, though, wasn't what I was looking for. ;)

--
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: Client File IO

Are you sure the images will overload the server? Why?

Here's a thought: create an image cache. You can do it on either the
client or the server. The client will "forget" the images if you
click away from it, and the images will only be viewable inside your
client app, but other than that it should work.

If you simply want a proxy server to get around your country's
censorship, go here: http://proxies.xhaus.com/ or here: http://www.squid-cache.org/

Good luck

On Nov 30, 11:52 am, khalid <khalid....@gmail.com> wrote:
> Hello
> Thank for your replies
> I will describe this more, In many countries here in the middle east
> there are many blocked sites by the ISP.
> Now when a website is blocked all of its content is inaccessible
> including the images and that is why I want the
> server to fetch the images for me
> Thank you

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

$ $ $ Download the free One of the strongest 3 programs to protect your computer from the Internet $ $ $

Free Download of the strongest 3 programs to protect your computer
from the Internet
Giant repair errors without competitor TuneUp Utilities 2011
Compression program files files WinZip Pro 15.0.9327
Kaspersky wonderful tool to examine the system and eliminate viruses
Kaspersky Virus Removal Tool 2010
Download from here
http://prosoftantivirus.blogspot.com/2010/11/3-programs-can-not-be-dispensed-to-them.html

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

missing object in object_list generic view

It's very strange, got this:
urls
info_dict = {
'Queryset': Obra.objects.all (),
}

(r'index / $ ',' django.views.generic.list_detail.object_list ',
info_dict, dict (name = "obras_index", template_object_name = 'obras',
paginate_by = 5)),

template
[...]
{% For book in the works%}
<h2> obra.numero {{}} </ h2> ## example
[...]

and what appears in place of the list of objects paged out of 5 in 5,
is
"Page of"

I'm missing the queryset variable somehow

What can I do to solve the problem

thank you
Aboim

--
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] Retrieve Version of another app

This is probably obvious to the rest of you, but I'm getting a bit
lost.

I've been using the PackageManager to check whether another app is
installed.

Can I use it to check the version number of that other app?

Thanks for any tips.

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

[Google Maps API v2] Ajax/Jquery based Google Map

Hello

Im trying to build map that can be seen on following URL, please
advise if you have any example available for such thing or any tips
that can help me to make something very close to that.

http://www.chr-apartments.com/greater-boston-apartments-for-rent

My effort can be seen on following URL

http://dev.uptownrents.com/search/

I have used php/mysql/ajax/jquery.

Regards,
Irfan

--
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: Checking parameters

On Nov 29, 3:30 pm, turkan <kai.schl...@googlemail.com> wrote:
> Hi.
>
> I am often checking the same parameters (like param[:page] and
> param[:per_page]) in models over and over again (are those in a
> specific range ... if not use defaults):
> page = !options[:page].blank? && options[:page] =~ /^[0-9]+$/ &&
> options[:page].to_i > 0 ? options[:page].to_i : 1
> per_page = !options[:per_page].blank? && options[:per_page] =~ /^[0-9]+
> $/ && options[:per_page].to_i > 0 && options[:per_page].to_i <= 100 ?
> options[:per_page].to_i : 10
>
> How can I make this more DRY and easier to read?

For a start, make use of the fact that Ruby is not Java. For instance:

''.to_i # => 0
nil.to_i # => 0
'blargh'.to_i # => 0
'123foo'.to_i # => 123

That last one is arguably weird, but reasonable.

Secondly, for range-ish cases you might want to use some of the Array
functions. Your first case becomes:

[1, options[:page].to_i].max

the second (this is not as clear):

[100, [1, options[:per_page].to_i].max].min

or, if you don't mind scribbling on the options hash:

options[:per_page] = 10 unless (1..100).include?
(options[:per_page].to_i)

--Matt Jones

--
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: Eclipse setup, javax.validation missing and jsp syntax highlighting

I'm assuming that neither of you are using Maven as this library is
included at http://repo1.maven.org/maven2/javax/validation/validation-api/1.0.0.GA/,
so you'll need to download it and manually add it to your classpath.

Hope this helps!

smoyer

On Nov 19, 7:54 am, -sowdri- <sow...@gmail.com> wrote:
> Even I'm facing the same problem.
>
> FILE: /Expenses/src/com/google/gwt/sample/expenses/server/domain/
> Employee.java
>
> /* these imports fails */
> import javax.validation.constraints.NotNull;
> import javax.validation.constraints.Size;
>
> ...
>
> I've been trying to make things work for a long time. Any help is
> appreciated.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

[Google Maps API v2] Marker infowindow is getting deformed

Hi All,

Please can you help me in resolving the infowindow deformation issue.

I'm using Google map V2 in Wordpress. At one installation, due to the
CSS used by the Wordpress theme the infowindow is getting deformed
from the right side. Following is the link:

http://thegallerieslist.com/glocscode4/

click on orange marker to see the window.

Checking the page in firebug I found that the CSS is setting the html
objects as below. I wonder this might be the issue. Is there any way I
can get the original Google map infowindow style back?

thanks & Regards,
Ashwani

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}

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

FlowPanel vs. HorizontalPanel

I have created a FlowPanel that contains 4 ListBoxes and a button. I
wanted to put some space between the items, so I added empty
HorizontalPanels (with padding: 3px;) as spacers in between each
item. FlowPanel responded by placing each item (including each of the
HorizontalPanels), on its own line (IOW, it's now acting like a
VerticalPanel).

If I remove some of the spacers, then the items that don't have
spacers between them share a line with each other, and the ones with
spacers each go on a separate line.

Is this a bug? Is this supposed to happen? How do I fix it?

While I'm asking, if you resize the panel that a FlowPanel is in, does
it automatically "reflow" its items?

Thanks.

Greg

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

[Rails] Re: incompatible character encodings: ASCII-8BIT and UTF-8

Marnen Laibow-Koser wrote in post #965150:
> It's a standard *nix patch file. The patch command could read it (see
> its man page for more details), but the a/ and b/ file naming scheme
> means that you'd probably be better off using git apply.

Is possible use a patch command also under Windows? What about Git? Is
it safe to install such patch for all the system also for ROR-beginners?
Can I modify the source files manually (to exactly know, what have I
changed)?

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

EASY MONEY MAKING BY JUST CLICKING ON THE ADS PLEASE VISIT

EASY MONEY MAKING BY JUST CLICKING ON THE ADS
PLEASE VISIT

http://www.neobux.com/?rh=7072616A657368353236

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

[Rails] Re: incompatible character encodings: ASCII-8BIT and UTF-8

Gjermund Lunder wrote in post #965049:
> Anyone know how to add this patch?:
> 0001-enforced-utf-8-encoding-for-ruby-19-and-mysql-text.patch
>
(https://rails.lighthouseapp.com/projects/8994/tickets/4683-ascii-8bit-and-utf-8-in-hell)
>
> I've never applied such a pacth.

It's a standard *nix patch file. The patch command could read it (see
its man page for more details), but the a/ and b/ file naming scheme
means that you'd probably be better off using git apply.

>
> Thanks
>
> Gjermund

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org

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

make money

http://make-droller.blogspot.com/

http://make-droller.blogspot.com/

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

Re: Drag-and-drop solution with GwtQuery

Looks good. I am curious why you made it a plugin for gwtquery?

On Nov 29, 8:36 pm, zixzigma <zixzi...@gmail.com> wrote:
> WOW
> this is Fantastic !!!
>
> just looked at the demo,
> CellTable and CellTree are beyond amazing !
>
> THANK YOU !!!
>
> i am super excited,
> going to experiment with the code very soon.
>
> Super Great, Thank You very much !

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

Online marriage service from Russia

Online marriage service from Russia
http://cpc.cx/1Fb

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

Re: [Rails] Re: iFrame and routes

On 30 November 2010 14:42, Albert C. <lists@ruby-forum.com> wrote:
> Ok, lets begin, I'm newest, sorry because this is a low level question:
>
> If I have this, and of course I've saved before, this file in public dir
>
> <iframe src="public/6465_p_61_620_15674.pdf"></iframe>
>
> ¿Why doesn't work?

if it is in the public folder of your app then you just want
src="/6465_p_61_620_15674.pdf".

Colin

--
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: Sony Ericsson LiveView™ micro display SDK is released

Hi,
Is it possible to get a download link for the android-2.1
update for the Xperia X10? I have one and would like to update it.

Elvis Dowson

--
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: server side request are static...

On 29 nov, 01:23, Simon Majou <si...@majou.org> wrote:
> I think it would be better to move the requests out of the entity in
> their own class and annotate them just like for the proxy (something
> like @requestsFor(Entity.class)). Would it be possible?

See http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1
and, more specifically, http://code.google.com/p/google-web-toolkit/issues/detail?id=5680

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

[android-developers] Re: What is the best way to send data from Android Application to a Remote MySQL Database?

Agree use a Rest Service or several

On Nov 29, 1:56 pm, Leon Moreyn-Android Development
<lmor...@earthcam.com> wrote:
> You can create an online page to handle data posts to your database.
>
> On Nov 29, 7:34 am, priya naral <naral.pr...@gmail.com> wrote:
>
> > What is the best way to send data from Android Application to a Remote
> > MySQL Database?
>
>

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

3akarat.com - ارض بالساحل الشمالي

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

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

Retrieving Posts with comments

Hello

i have a simple app that's very similar to the cookbook "Blog"
tutorial

i want to retrieve all Posts having at least one comment.

right now i'm doing this way:

$posts = $this->Post->find("all", array("contain" =>
array("Comment"));
foreach ($posts as $index => $post) {
if (empty($post["Comment"])) unset $posts[$index];
}

is there any way to achieve this by using a single ->find() call?

notes: i'm using Containable.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

[android-developers] Re: How can I split pdf file into png / jpeg image

This is to intensive for mobile devices! Make a webservice that
accepts a pdf and returns the image!

Byron
Grace Software

On Nov 27, 3:47 am, sanjay <sanjayujjain...@gmail.com> wrote:
> Hi,
>
> I want my android application to save each page of a pdf file into a
> png / jpeg image.
>
> Any idea how to achieve this?
>
> Thanks & Regards,
> Sanjay Ujjainkar

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

mobile business for girls

http://123maza.com/25/nial159/

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

[Google Maps API v2] Re: Plotting Multiple Address on the Map ?

I want to use it in JavaScript but the function getLocations() returns an xml file which i cant read in javaScript so what to do?

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

ONLINE STORE: ===== http://www.bsafebiz.com ====== ===== http://www.bsafebiz.com ====== Air jordan(1-24)shoes $30 HandWholesale all kinds of world brand shoes,jeans,t-shirts,bikini,beach pants,handbags,wallets,sunglasses,belt,caps,watches etc..

ONLINE STORE:
===== http://www.bsafebiz.com ======

===== http://www.bsafebiz.com ======

Air jordan(1-24)shoes $30

Handbags(Coach l v f e n d i d&g) $35

Tshirts (Polo ,ed hardy,lacoste) $15

Jean(True Religion,ed hardy,coogi) $30

Sunglasses(Oakey,coach,gucci,A r m a i n i) $15

New era cap $12

Bikini (Ed hardy,polo) $20

accept paypal and free shipping
===== http://www.bsafebiz.com ======

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

no person control us and time limit, earnings comes to us directly without any interference

http://123maza.com/35/sea419/

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

Re: Problem showing NotificationMole

I can make the mole appear by manually setting the properties:

public void showNotification(String msgToDisplay){
showGlass();
notifier.show("first: "+msgToDisplay);

notifier.getElement().getFirstChildElement().getStyle().setDisplay(Display.BLOCK);

notifier.getElement().getFirstChildElement().getStyle().setWidth(200,
Unit.PX);
}

But this is what the notificationMole.show() should be doing???

Regards,
Nirmal

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

{smartbroker} amazing view , ,,, distress sale

DOWN TOWN BURJ KHALIFA 

THE ADDRESS DUBAI MALL HOTEL ( DM HOTEL )
 
2BR
1800 SQ.FT,
HIGHER floor
FULL burj & fountain & old town , down town view
s.p : 3,600,000  AED only
 
 
mehdi
050 154 60 64

--
member of
(almadani real estate - abu dhabi)-to join send sms to (050-6764812)--saif

[Rails] Re: please explain me why nil?

ps. rails 3.0.3

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

welcom to http://www.wowougg.com cheap nike shoes,air jordan shoes, and kinds of brand handbags jeans sunglasses t-shirts caps watchs。。 (GREAT PRICES FREE SHIPPING AND PAYPAL ACCEPT)

Hello,everybody,the good shopping place,the new year approaching,
click in. Let's facelift bar!
welcome to our websit:
╭══════════════╮
http://www.wowougg.com
╰══════════════╯
Air jordan(1-24)shoes $30
BOOT $50
Nike (R4,NZ,OZ,TL1,TL2,TL3) $33
Handbags(Coach lv fendi d&g) $33
Tshirts (Polo ,ed hardy,lacoste) $16
Jean(True Religion,ed hardy,coogi) $30
Sunglasses(Oakey,coach,gucci,Armaini) $12
New era cap $9
Bikini (Ed hardy,polo) $18
FREE SHoPPING
( http://www.wowougg.com )

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

Re: SLF4J with GWT dev mode not works?

Just noticed that it has a related issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=3496

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

[Google Maps API v2] Re: Plotting Multiple Address on the Map ?

I have an array of address to how can i get the LatLag values for that address. I have used
for(var i = 0; i<address.length; i++){
    geocoder.getLatLng(address[i], function(point){
       alert(point);
    });
}

   and this will return the LatLang values for that address if this address is exists on the google map...!
If you have any better option please suggest.

Thanks a Ton...!

--
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: Error : VALID_NOT_EMPTY

look at http://book.cakephp.org/view/1173/notEmpty for new validation
rules or http://book.cakephp.org/view/1151/Multiple-Rules-per-Field is
an other good point to start with validation.

On 29 Nov., 11:43, Hans Wiriya Tsai <hansw...@gmail.com> wrote:
> I hv CakePHP 1.3.6 installed on Ubuntu and learning to create simple
> blog. When I add validation to my model, I got this error:
>
> Notice (8): Use of undefined constant VALID_NOT_EMPTY - assumed
> 'VALID_NOT_EMPTY' [CORE/cake/libs/class_registry.php, line 141]
>
> Here's my model:
> <?php
> class Blog extends AppModel {
>         var $name = 'Blog';
>         var $validate = array(
>                         'title' => array(
>                                         'rule' => VALID_NOT_EMPTY,
>                                         'message' => 'Title of a blog cannot be empty'
>                         )
>         );}
>
> ?>
>
> Any idea what this error is all about? Thx for any help.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

[Rails] Re: Help needed!!!

I think don't be afraid, just try it out! On your cpanel you can
delete anything if you find it unuseful.
You can also make a server on your machine, you will reach it as
localhost.

Also you can ask your hosting's support.

After you tried to make it work, and something has error message -
it's much easier to help you, since we know what is your problem.
Good luck,
Zoltán

On nov. 29, 22:05, thunda <ddccommunicati...@gmail.com> wrote:
> I am a complete novice when it comes to ruby and gems/rails.  I was
> wondering where I would go to get help installing this on my domain,
> so I can test it.
>
> http://github.com/maccman/holla
>
> paid or unpaid help sought?!
>
> Regards
>
> Thunda

--
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: Console bake - modify templates

Dear Sophy

When I use that, it is a kind of submit or what?

$.ajax({
                                    type: "POST",
                                    url: "replace_expenses",
                                    data: dataString,
                                    success: function(results) {
                                        $('#ajax_update').html("<div id='message'></div>");
                                        $('#message').html(results)
                                        .append()
                                        .hide()
                                        .fadeIn(1500, function() {
                                        });
                                    }
                                });

Dalina,

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Monday, November 29, 2010

[android-developers] Re: Help - Gecoding is failing on a regular basis - does anyone else notice this?

I use Geocoding a lot and measure the rate of failure in the field.
Within my App I will try a particular request up to 5 times before
declaring failure with a target of satisfying >95% of requests. I've
been hitting that service level consistently over the last 3 months.

If anything I would say that my perception is that it has improved
recently - but this may be due to increasing geographic spread rather
than an improvement at a particular location.

On Nov 29, 3:34 pm, pawpaw17 <georgefraz...@yahoo.com> wrote:
> Guys,
>
> In my app, I call the geocoder to get lat,long pairs for zip codes.
> This has worked
> great for over a year.
>
> However, recently I notice that sometimes as many as 8 out of 10 calls
> to get a location
> fail - and by fail I mean they return empty lists. However, sometimes
> it works.
>
> This is not the same issue as the emulator failure to geocode using
> API 8. this is
> on the actual device.
>
> Has anyone who relies on the geocoding API noticed this?
>
> Thanks,
>
> pawpaw17

--
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: Market expanding to technically non-compliant devices?

GoogleTV. My Logitech Revue has no touch screen - assuming the market
gets expanded to this device (yes please!) then I won't want to see
any apps where I need to touch the screen.


On Nov 30, 12:01 am, Peter Webb <r.peter.w...@gmail.com> wrote:
> Looking at the Developer's console, I note (correctly) that my
> application needs permissions for touch-screen operation.
>
> I don't think it used to do that, but maybe I just didn't notice.
>
> Furthermore, touchscreen is a standard part of the google android
> hardware specification, and it is hard to see how it could be a
> security issue.
>
> Perhaps the market is being expanded to allow devices without
> touchscreen (and hence not android hardware compatible) to
> applications that they can run, in much the same manner as the market
> will filter out apps that need high res if you are on a low res
> phone ?
>
> Why else might they filter on touchscreen?

--
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: Back key behaviour between Activity Groups.

To add on, dont forget to add the constructor to the PlayBackView with
context and AttributeSet

i.e.

public PlayBackrView(Context context, AttributeSet attrs) {
super(context, attrs);
......
......
}


On Nov 30, 11:52 am, akkilis <deepakverma.u...@gmail.com> wrote:
> Mahesh,
>
> Why dont you make a different class, say PlayBackView, extending
> LinearLayout and place the layout of the common component "Playback
> bar" in a different layout xml, say playback.xml.
>
> Now inflate the playback.xml in the PlayBackView.
>
> Now you can add this your custom view in any of the layout xml (home,
> A, B, C)
> as:
>
> <?xml version="1.0" encoding="utf-8"?>
> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>         android:orientation="vertical" android:layout_width="fill_parent"
>         android:layout_height="fill_parent">
>         <com.packagename.PlayBackView
>                 android:id="@+id/playbackview" android:layout_width="match_parent"
>                 android:layout_height="wrap_contentt" />
>
>         <ImageView ------- etc etc/>
> </FrameLayout>
>
> In the PlayBackView class, you can define the onClick handlers or any
> other event handler as you want.
> Hope this will help you.
>
> On Nov 30, 7:59 am, MaheshSharma <maheshsharmasuco2...@gmail.com>
> wrote:
>
> > Hello All,
> > My app is kind of a music app and I have a playback bar that I need to
> > be visible across all the views.
>
> > I had three activities, A/B/C. Instead of adding the playback bar
> > explicitly to all  A,B,C. I added the Playback Bar to A and made A,B,C
> > as ActivityGroups.
>
> > Since, A has the playback bar, now I when I start B from A, I call
> > setContentView from A to show B.
>
> > The problem is, once I call setContentView to show B, and then if the
> > user presses back key in B, then it goes to home screen, instead of
> > coming to A.
>
> > I have seen some snippets on web, which maintain the view stack and
> > when user presses the back key they pop up the previous view.
>
> > I couldnt implement that.
>
> > Questions :
> > 1) Is there any better way to having a activity like Playback bar/
> > Status bars across all the views/activities ?
>
> > 2) If the above way is the only way to do it,then how can I handle the
> > back key?
>
> > With Regards
> > MS.

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

Act Now! ELIMINATE Your Grocery & Gasoline Bills FOREVER!

This Is The ONE Program That ANYONE Can Do Well With.
There Is No Need To Educate Anyone On The 'Why'.
Everyone Eats. Everyone Would Like To Save Money! http://bit.ly/btWCeJ

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

[android-developers] location updates verizon

Is it possible to get network_location updates with Verizon phones? I could imagine that not, since Verizon is CDMA and there is no timing advance as in GSM for instance, so the network might not know the location at all. I am not sure though. I notice though that I am not getting anything from getLastKnownLocation when asking an ACCURACY_COARSE provider with a Verizon phone.

[android-developers] APK file package name

Hey,

I have an APK file. I just want to read its package name. How can 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: [Lovers India] hi sir

hiiiiiiiiiii

On 11/29/10, madhu king <msloversindia1@gmail.com> wrote:
> hi sir pls allow me to sending mails and post mails to this group
>
> --
> 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: auth_user first_name and last_name editing

Have you looked at:
http://docs.djangoproject.com/en/dev/topics/auth/#module-django.contrib.auth.forms

Failing that, http://docs.djangoproject.com/en/dev/ref/generic-views/
may help get you going quickly.

On Nov 25, 8:08 pm, BozoJoe <alex.mcc...@yahoo.com> wrote:
> So no builtin views and urls in any modules?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

[Rails] software and hardware specifications for ror website

Dear all,
pls dont mind for asking this...will somebody tell me the software and
hardware requirements of server and client for my rails
application(website)
well.. i am using ruby 1.9.2 and rails 3.0.3 and gem 1.3.7 and
mysql5..for my site development on my windows7...

--
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: Questions about ThreadSafeHttpClient connection

I should take the time out to go through the code.

I read somewhere that if the stream is at least read in full, the
connection is returned back to the pool.

I tried making almost concurrent requests from different threads and
it seems that there is only a certain thread that is blocked waiting
for a Connection. A quick check shows that the thread tries parsing
the stream using a pull parser and returns before END_DOCUMENT is
encountered. Maybe this is causing a connection leak?

Thanks again for your reply and time!

--
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] Market expanding to technically non-compliant devices?

Looking at the Developer's console, I note (correctly) that my
application needs permissions for touch-screen operation.

I don't think it used to do that, but maybe I just didn't notice.

Furthermore, touchscreen is a standard part of the google android
hardware specification, and it is hard to see how it could be a
security issue.

Perhaps the market is being expanded to allow devices without
touchscreen (and hence not android hardware compatible) to
applications that they can run, in much the same manner as the market
will filter out apps that need high res if you are on a low res
phone ?

Why else might they filter on touchscreen?

--
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: referring to params in other controller

Sure. I have a page in (view\controller x) with an input field.
Submitting the form displays the value of the input field on this same
page.

There is a link on this page that connects to another page in a
different view/controller (view\controller y). I want to use the param
(input field value) as a conditon in a 'find' in the controller y. But I
am not yielding results. It's like the param is empty. I hope this makes
it a little clearer

--
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: referring to params in other controller

Paul Roche wrote in post #964999:
> Hi. Is it possible to refer to a parameter from a page in another
> controller?

Your question is unclear as stated. More details?

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org

Sent from my iPhone

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

Please hurry! Your invitation ends soon! Meet Hot people near you on cam!

Check out Fubar, the only online bar and happy hour! Rate, chat, and
cam over 5 million people! Make friends or just play the game. Like
Facebook? Give Fubar a try. Follow this link as joining is by
invitation only. http://www.fubar.com/join_w1.php?friend=3550556

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

Formula For Success

Automated System Automatically Builds You A Full-Time Monthly Income!


http://www.money-making-system.ws


--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

[Rails] Checking parameters

Hi.

I am often checking the same parameters (like param[:page] and
param[:per_page]) in models over and over again (are those in a
specific range ... if not use defaults):
page = !options[:page].blank? && options[:page] =~ /^[0-9]+$/ &&
options[:page].to_i > 0 ? options[:page].to_i : 1
per_page = !options[:per_page].blank? && options[:per_page] =~ /^[0-9]+
$/ && options[:per_page].to_i > 0 && options[:per_page].to_i <= 100 ?
options[:per_page].to_i : 10

How can I make this more DRY and easier to read?

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

Javascript and template rendering problem

Hi,

How can I render to a javascript code a variable set in a view? I tried {{ variable }} but it returns nothing in the html source code. When I put this {{ variable }} outside <script> tags it works perfectly. Any clues?


thanks, anderson

--
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: Sony Ericsson LiveView™ micro display SDK is released

The reviews in amazon (
http://www.amazon.de/Ericsson-LiveView-externe-Bluetooth-Display/dp/B00477X6DA/ref=sr_1_1?ie=UTF8&qid=1291059718&sr=8-1
) are extreme bad for a sony ericsson product. Are there any update to
the APK delivered which now almost block all the phone
functionalities?

On Nov 29, 9:40 am, Najat Baker <najat.ba...@sonyericsson.com> wrote:
> You can now download LiveView™ SDK here:
>
> http://developer.sonyericsson.com/wportal/devworld/downloads/download...
>
> And you can find LiveView™ micro display developer tutorial here:
>
> http://developer.sonyericsson.com/wportal/devworld/downloads/download...
>
> Best regards
>
> Najat

--
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: generic views template problem

On Nov 29, 7:08 pm, Carlos Aboim <abo...@gmail.com> wrote:
> Guys,
> Someone can tell me what is happening with my generic
> views?
>
> I have the templates in my application folder 'templates' in the root
> my project.
> This folder is referenced in settings such as:
> TEMPLATE_DIRS = (
>     os.path.join (PROJECT_ROOT_PATH, 'templates')
> )
>
> and I am calling a generic view thus:
> (r'index / $ ',' django.views.generic.list_detail.object_list '
> info_dict, dict (name = "obras_index" template_object_name = 'obra',
> template_name = 'templates/obra_list.html "))
>
> It turns out that the server is not finding my folder
> templates and an error:
> Exception Type: TemplateDoesNotExist
> Exception Value: obra/obra_list.html
>
> how can I resolve the situation?
> Thanks
> Aboim

You don't need the extra 'templates/' in the template_name in your
url.
--
DR.

--
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: Crash when playing a song using mediaplayer

Same here
Just on the emulator , never seen on a phone

On 26 nov, 11:09, Monica Tudora <moni.tud...@gmail.com> wrote:
> Hello,
>
> I am working on a project where I have sound effects and two songs.
> When I make the transition from one sound to another and spamming
> touch the application crashes. It seems to be crashing somewhere in
> the mediaplayer.release(), it doesn't return from here. Every time I
> start a new sound I make release on the previously played sound and
> call create on the MediaPlayer again. Have you encountered something
> similar?
>
> Thank you.

--
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: Setting alarm time

I have tried using GMT as well. no use.
Something is wrong in my understanding of how this works.
Can anyone help?

On Nov 29, 5:21 pm, Kostya Vasilyev <kmans...@gmail.com> wrote:
> This looks suspect:
>
> > TimeZone.getTimeZone("UTC")
>
> Unless you are actually in that time zone....
>
> -- Kostya
>
> 29.11.2010 19:00, Tez пишет:
>
>
>
> > Hi,
>
> > I need to set an alarm clock for, say, 9AM
>
> > so I am getting a calendar instance
>
> > Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
> > cal.set(2010, 11, 29, 9, 0, 0);
>
> > and then I call AlarmManager.set like:
>
> > mAlarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTime().getTime(),
> > pi);
>
> > where pi is a pending intent for a broadcast message.
> > I do not receive a callback at the specified time.
>
> > How do I correct this?
>
> > Cheers,
> > Earlence
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.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

sex arab donlowad now very sexy kalina sexyy

fordonlowad click her:
http://sou-sam.blogspot.com/
http://sou-sam.blogspot.com/
http://sou-sam.blogspot.com/
http://sou-sam.blogspot.com/
http://sou-sam.blogspot.com/
http://sou-sam.blogspot.com/
http://sou-sam.blogspot.com/
http://sou-sam.blogspot.com/
http://sou-sam.blogspot.com/
http://sou-sam.blogspot.com/
http://sou-sam.blogspot.com/
http://sou-sam.blogspot.com/
http://sou-sam.blogspot.com/
http://sou-sam.blogspot.com/

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

way to holly wood actress

http://www.photovediodating.com/bikini-photos.htm

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

Lovely hot and sexy girls

http://www.photovediodating.com/bikini-models.html

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

[Rails] Re: incompatible character encodings: ASCII-8BIT and UTF-8

Gjermund Lunder wrote in post #964675:
> all,
> Thanks for good ideas, but like for Robert K. it's not working for me
> (ruby 1.9.2 and rails 3.0.3).
>
> Robert K., check that your tables are of type = MyISAM and CHARACTER SET
> utf8 in Mysql.

Er, why MyISAM? That's generally a poor idea, since you don't get
transactions or referential integrity.

(Of course, using MySQL itself is IMHO a poor idea...)

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org

Sent from my iPhone

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

CellTable, how to create a cell with custom listbox

I have to create a CellTable with cells that contain ListBoxes.

The issue is that I want each item of the listbox to contain an Image
and Text!
Standard ListBoxes does not allow us to use images at its items
(<select> <option>Item 1</option> </select>).

What is the best approach I can follow to implement this?

Thank you for your time.

Savilak

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

[android-developers] Setting alarm time

Hi,

I need to set an alarm clock for, say, 9AM

so I am getting a calendar instance

Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
cal.set(2010, 11, 29, 9, 0, 0);

and then I call AlarmManager.set like:

mAlarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTime().getTime(),
pi);

where pi is a pending intent for a broadcast message.
I do not receive a callback at the specified time.

How do I correct this?

Cheers,
Earlence

--
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: Something weird about draggable_element_js

On 27 nov, 23:01, jhaagmans <jaap.haagm...@gmail.com> wrote:
> On Nov 27, 10:48 pm, jhaagmans <jaap.haagm...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > Because I want to create several draggable elements in a list, I'd
> > like to do the following:
>
> > <script type="text/javascript">
> >   <%- elements.each do |element| -%>
> >     <%= draggable_element_js("element_#{element.id}".to_sym, :revert
> > => true) %>
> >   <%- end -%>
> > </script>
>
> > However, if you'd try this in your app, you'll see that this won't
> > work, because the quotes around the ID in the generated javascript are
> > converted to the HTML-equivalent (&quot;).
>
> > Is this a bug or am I doing something wrong?
>
> > Regards,
> > Jaap Haagmans
>
> Sorry, the .to_sym was something I tried, but I of course tried it
> without the .to_sym first.

The same goes for drop_receiving_element_js, by the way. Can anyone
tell me what I'm doing wrong?

Regards,
Jaap Haagmans

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

Where is the Wiki about Media Plugin of David Persson

Hi
I can't find more the Wiki about Media Plugin of David Persson.
Can someone give me the new url to the Wiki?
I don't remember how use medium helper.
Many Thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: GWTTest case mapping URI to file for testing

have you registered a servlet in your GWT module?

<servlet class="yourServletClass" path="/test.json"/>

On 29 Nov., 14:54, Raphael André Bauer <raphael.andre.ba...@gmail.com>
wrote:
> Hi folks,
>
> I want to write a GWTTestcase that fetches a file "from the server".
> My setup is maven + headless htmlunit for integration testing (target
> integration-test).
>
> Say I got a json file (named "test.json" I want to read from the
> server in directory root. Where do I have to put my json file in my
> "test" setup so that a GET at /test.json returns that file?
>
> I always get a Error 404 NOT_FOUND from my jetty in the testcase.
>
> Thanks,
>
> Raphael

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

[Rails] Re: ANNOUNCE: Acts_as_indexed 0.4.3 - Pure Ruby full-text indexed search

Great Post.I like the link.Now expecting some good ideas from your

upcoming post
http://www.dealsourcedirect.com/ion-tape2pc.html

--
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: What is the best way to render complex cell?

Good news.
Thank you,
Andrey

On Nov 28, 6:22 pm, John LaBanca <jlaba...@google.com> wrote:
> We plan to introduce UiBinder for Cells in a future version of GWT,
> hopefully GWT 2.2.  We want Cells to be a complete replacement for Widgets,
> but we realize that the potential for an HTML syntax error grows as the
> level of complexity of a Cell increases.  UiBinder for Cells should make it
> much easier to template Cells.
>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
>
>
>
>
>
>
> On Fri, Nov 26, 2010 at 1:01 PM, ailinykh <ailin...@gmail.com> wrote:
> > Hello, everybody!
> > I have CellList which contains custom cells. It's pretty close to Cell
> > List example from show case, but my custom cell is more complicated.
> > It has several images, several links and I want to handle clicks on
> > images and links. Generating html code by overriding render method
> > seems to very difficult and error prone. Is there a better way to do
> > it? What I wish to have is implementing widget using UiBinder and then
> > converting it into Cell.
> > Is it possible?
>
> > Thank you,
> >  Andrey
>
> > --
> > 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<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

GWTTest case mapping URI to file for testing

Hi folks,


I want to write a GWTTestcase that fetches a file "from the server".
My setup is maven + headless htmlunit for integration testing (target
integration-test).

Say I got a json file (named "test.json" I want to read from the
server in directory root. Where do I have to put my json file in my
"test" setup so that a GET at /test.json returns that file?

I always get a Error 404 NOT_FOUND from my jetty in the testcase.


Thanks,

Raphael

--
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: Django book

There are many books on Django. You can look on www.softpro.com,
Amazon, or your favorite book store.
I've gotten a lot out of two books. The Definitive Guide to Django and
Visual Quick Pro Django.

On Nov 28, 11:24 am, Matthias Runge <mru...@matthias-runge.de> wrote:
> Djangobook is available as printed edition from apress, as well as "practical django projects". The latter, I think, aims to more advanced django programmers. "The definitive guide to django" was a good starting point for me.
> I hope, this helps for you,
> Matthias
>
> "Reeti Pal" <coldreetit...@gmail.com> schrieb:>i gues there are no printed books available.
> >www.djangobook.com
>
> >http://docs.djangoproject.com/en/1.2/contents/
>
> >are two sites from where you can learn
>
> >reeti
>
> >--
> >You received this message because you are subscribed to the Google
> >Groups "Django users" group.
> >To post to this group, send email to django-users@googlegroups.com.
> >To unsubscribe from this group, send email to
> >django-users+unsubscribe@googlegroups.com.
> >For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


Real Estate