3akarat.com - شاليه مصيف ايجار فيلا مرسى مطروح قرية القصر
إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .
عقارات دوت كوم
----------------------------------------------------------------------------------------
إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .
عقارات دوت كوم
----------------------------------------------------------------------------------------
Hi,
The reason for this type of behavior is probably the conditions that
have been put up to display the listview. Since, I need to change the
background image on certain conditions. Now, after scrolling those
conditions are not satisfied as it should be.
I think this will need to be checked by me only since only I have the
source code.
Regards
Sunil
--
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
hello,
i would like to replace my models.py with a package that has a
hierarchical directory structure. in __init__.py i want to define my
base models, and the other files would contain models that inherit the
base models.
in particular i am trying to define proxy models for my models and put
them in to separate files.
the problem is that the user admin system's "change user" screen does
not list the permissions for proxies if they are located in separate
files. if i put proxy classes in to __init__.py and re-run syncdb,
then the permissions get listed. otherwise not. i tried creating
__all__ array in my __init__.py that includes the proxy files, and i
tried importing the files in to __init__.py to no avail.
how can this be done?
thanks
konstantin
--
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.
Feedback experiment has been removed from the developer console, at
-John Coryat
--
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
Hi,
Did you signed your application?
MapView won't even display in another simulator on other system if its
not signed in the release mode.
I am not sure but please make sure that it is signed and check whether
it helps.
Regards
Sunil
--
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
Hello,
Hi,
I am developing an android application where I need to manipulate the
background image of the rows in listview on certain conditions.
Initially when the listview is loaded all works properly. But when I
scroll down to the listview and come up again the background image
changes. Can someone tell me the reason why its happening so?
Hope to get the reply soon.
Regards
Sunil
--
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
I know to use GDirections the Load, Code: load ("from:" + fromAddress + "to:" +
toAddress, ("locale": locale)); is the address wrong you? Code: GEvent.addListener (gdir, "error", handleErrors) this event, can I know the address error fromAddress or toAddress in handleErrors ?
On Fri, Apr 30, 2010 at 5:08 PM, cornflake <ilya.kogan@gmail.com> wrote:
Hello,
I'm looking for a way to define uniquness for a set of more than one
field in a model.
For example:
class Item(models.Model):
order = models.ForeignKey(Order)
number = models.IntegerField()
...
I want the number to be unique per order, and not unique throughout
the table.
How do I define that the combination <order, number> should be unique?
How are you. Today I want to share with you all a new website to download mp3 song and also watch video clip song. It is free no charge. Various of mp3 language like english, malay, indonesia, thailand, korea and many more. You also can request for any song you like, and they will give the song you requested as soon as possible.
Go to:
http://www.simurl.com/freemp3download2u
Apa khabar. Hari ini saya akan berkongsi dengan anda satu laman web yang boleh download mp3 dan juga menonton video clip lagu. Ada bermacam pilihan bahasa, inggeris, melayu, indonesia, thailand, korea dan banyak lagi. Semuanya percuma tak payah bayar. Nak buat permintaan lagu pun boleh.
Layari:
I just got this new phone, and was trying to download some sound
--
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.
إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .
عقارات دوت كوم
----------------------------------------------------------------------------------------
I have deployed several instances of a Rails application. I am now
1) Files which should only be written if there is no corresponding
file in the installation. These would typically be new files that are
being added from the archive.
2) Files which should overwrite corresponding installed files only if
the archive file is newer than the installed file.
The problem is that the tar archive does not allow me to specify the
overwriting rule to be applied on a file by file basis. Thus unless
there is some way to do this that I don't know about, I would really
need 2 tar archives for each update. I see this as being unacceptably
cumbersome. I reason that there must be a better way. Does anyone
know what that better way is (possibly a different archiving tool)?
Thanks for any input.
... doug
--
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.
إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .
عقارات دوت كوم
----------------------------------------------------------------------------------------
إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .
عقارات دوت كوم
----------------------------------------------------------------------------------------
Alibaba Work At Home Scams! ====
Looking to buy products from China and sell in USA. Many
Alibaba scams are taking advantage of this situation.
Yahoo has a big stake in Alibaba, but neither Alibaba or Yahoo
are doing anything to stop the fraud against the so called
trust pass gold member verified sellers.
http://jiugaointernationaltrading.blogspot.com/
http://alibabafraud.blogspot.com/
Reported Scam emails
hkjiugaoadena@hotmail.com
hkjiugao@hotmail.com
tradesecurity06@service.alibaba.com
alidashengsale@hotmail.com
ewatkinson@alibaba-inc.com
kfitting@alibaba-inc.com
wendywong@alibaba-inc.com
jason@member.alibaba.com
yongze.jiayz@alibaba-inc.com
sales_cn@alibaba-inc.com
lili.full@alibaba-inc.com
run.fengr@alibaba-inc.com
yaqin.zhaoyq@alibaba-inc.com
alibaba@alibaba-inc.com.my
johnspelich@hk.alibaba-inc.com
Jiugao International Trading
Dongguan Dasheng Zipper Limited Company
Ms. Adena Lin
Ms. Susan Jia
Buyer beware!
--
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.
On Apr 30, 11:54 am, Stuart <stuartcole.can...@gmail.com> wrote:
Why would you want to slow down the load? If the kml doesn't change,
"refreshing" the cache would mean the browser would have to transfer
it again from the server.
The correct thing to do is to arrange your code so it doesn't depend
on the delay.
Which is what the changes Rossko and I are suggestion would do.
-- Larry
>
> Thanks again for the replies.
>
> --
> You received this message because you are subscribed to the Google Groups "Google Maps API" 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 athttp://groups.google.com/group/google-maps-api?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Maps API" 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.
Yeah multiple texture units are only needed for multitexturing, of
On Apr 30, 4:57 pm, Mario Zechner <badlogicga...@gmail.com> wrote:
> The number of texture units and the maximum texture size are not
> really related in any way. The number of texture units tells you how
> many textures you can use simultaniously when drawing geometry (how
> many textures can be bound at once). You can have more textures in
> video ram than there are texture units, however, you can only bind
> #texture units textures at any time. A maximum of 2 texture units is
> sufficient for most scenarios where you have a diffuse texture and a
> lightmap for example.
>
> The maximum texture size is really just an estimate with most drivers
> and depends on things such as internal storage (which might be fixed
> by the driver anyways) and so on.
>
> In any case, both numbers will differ from device to device or rather
> chipset to chipset.
>
> On 30 Apr., 23:19, Jeremiah Sellars <sylus.mcf...@gmail.com> wrote:
>
>
>
>
>
> > I'm wondering if this is just an issue with how the emulator is setup,
> > but I'm not sure.
>
> > I'm (natively) calling this:
>
> > int maxt = 0;
>
> > glGetIntegerv(GL_MAX_TEXTURE_UNITS, &maxt);
>
> > __android_log_print(ANDROID_LOG_VERBOSE, "Native", "Max textures %d",
> > maxt);
>
> > This only outputs 2... could it be possible that I'm going to be
> > allowed only 2 textures? That seems impossible...
>
> > GL_MAX_TEXTURE_SIZE reports 4096 which is more than enough. I suppose
> > you could lay everything out on a couple of 4096x 4096 images (seems a
> > bit crazy) but anyway...
>
> > Am I just running into one of things that will be different per phone
> > processor?
>
> > Thanks everyone,
> > Jeremiah
>
> > --
> > 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 athttp://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 athttp://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
hello, may be this will be useful:
http://code.djangoproject.com/wiki/DynamicModels
On Apr 22, 5:53 am, Massimiliano della Rovere
<massimiliano.dellarov...@gmail.com> wrote:
> An external process creates tables whose names follow the pattern
> "collector_XYZ"; all the tables will have the very same structure.
>
> For each table I need to create a matching django.db.models.Model and
> django.admin.models.ModelAdmin, dynamically, because over time new
> tables will be created and I do not want to restart apache after the
> program is deployed.
>
> How can I hook this generation process to the login function of the
> admin interface so that each time a user logs in django checks if all
> the tables have a corresponding model? Is there a better mount point?
> Is there a more django-nic way to accomplish this?
>
> from django.db import connection, transaction, connections
>
> cursor = connections['collector'].cursor()
> cursor.execute('SHOW TABLES LIKE "collector_%%"')
> # table name: collector_identifier_nn
> # identitifer is unique among all the tables
> # nn is a two digit number
>
> models = {}
> for t in cursore.fetchall():
> ..values = str(t).split('_')[1:]
> ..models[values[0]] = generaCollector(values[0], values[1])
> ..admin.site.register(models[-1])
>
> def generaCollector(cliente, num):
> ..if type(num) != type(''):
> ....raise TypeError('parameter client must be of type %s insted of %s'
> % (type(''), type(cliente)))
> ..if type(cliente) != type(''):
> ....raise TypeError('parameter num must be of type %s insted of %s' %
> (type(''), type(num)))
> ..cliente = str(cliente).lower()
> ..nome = 'Collector%s%s' % (cliente.capitalize(), num)
> ..ret = type(nome, (Collector,), {'__module__':
> Collector.__dict__['__module__']})
> ..ret._meta.db_table = 'collector_%s_%s' % (cliente, num)
> ..return ret
>
> class Collector(models.Model):
> ..id = models.IntegerField(primary_key=True)
> ..unique_check = models.CharField(unique=True, max_length=240, blank=True)
> ..collector = models.CharField(max_length=96, blank=True)
> ..agent_host = models.CharField(max_length=384, blank=True)
> ..insert_time = models.DateTimeField(null=True, blank=True)
> ..# etc etc
>
> ..def __unicode__(self):
> ....return self.insert_time.isoformat()
>
> ....class Meta:
> ......db_table = u'collector'
> ......abstract = True
>
> --
> 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 athttp://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.
I have a custom checkbox which I assign a custom resource to using the
--
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
hi -
i'm trying to integrate facebook authentication into my app. facebook
sets a cookie called fbs_xxxx where xxxx is your app id.
but, i can't figure out how to get my hands on that that cookie inside
rails, cookies[] only gives me access to my apps cookies.
thanks for any help,
dino
--
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.
Hello,
class Item(models.Model):
order = models.ForeignKey(Order)
number = models.IntegerField()
...
I want the number to be unique per order, and not unique throughout
the table.
How do I define that the combination <order, number> should be unique?
Thanks,
Ilya
--
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.
> use removeCallbacksAndMessages(null)
Thanks. Where is this documented? There's no mention in the Handler
documentation about passing a null Object to this method.
--
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
Abri tu negocio rentable en un mercado en crecimiento producto de 3
--
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.
> FYI - probably what is happening is that when you navigate back to the
Anyway of selectively refreshing the KML from the cache?
Thanks again for the replies.
--
You received this message because you are subscribed to the Google Groups "Google Maps API" 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.
Hi ! I want using the new JSHelper with Jquery, i need create a
Thanks!
Celso
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
Hi
Just a guess only
> if params[:echantillon][:vignette].blank?
instead of this please try
unless params[:echantillon][:vignette]
Sijo
--
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.
Hi
So you have to install 2.3.5 rails by
gem install rails -v=2.3.5 OR simply gem install rails
from command prompt
Sijo
--
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.
Background:
Problem:
Using ACTIONSEND and Intent.EXTRA_STREAM (a) requires the file to be
on sdcard and (b) displays a mail client UI. I found a library called
javamail_lbmod.jar but it is over 1MB large; I feel thats overkill
for
what I need.
Anyone know of a small library or other solution for my issue. I
could
live with the sdcard requirement if I could just suppress the mail
client UI.
thanks
Jay
ps: I posted this message yesterday and it has completely disappeared
from the list.
--
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
Hi guys,
Visit home based jobs - http://simplyrichsg.com/share/bal
--
Thanks & Regards
V.Balasubramani
--
http://www.LoversIndia.in
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
http://www.LoversIndia.in
Hello all,
i am not finding a flexible solution.
if anybody have knowledge please help me.
Thanking in advance,
Best Regards
Subrat Kumar Panda
India
--
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
Dear All,
April 30th, 2010: EUR/USD, EUR/JPY, USD/JPY, GBP/JPY, AUD/JPY, GBP/
USD, AUD/USD & USD/CHF Daily Technical analysis updated -
http://www.ForexAbode.com/.
Best regards
--
You received this message because you are subscribed to the Google Groups "belajar forex malaysia" group.
To post to this group, send email to belajar-forex-malaysia@googlegroups.com.
To unsubscribe from this group, send email to belajar-forex-malaysia+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/belajar-forex-malaysia?hl=en.
I find some web site can show information about my application, such
--
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
Hello everyone,
I am tring to do a online survey to see if there is a demand for a new
business idea that I have. What I didn't know is how hard it would be
just to get people to take a quick 3min survey to provide me with the
information that I need.
I would like to ask everyone that reads this post to please come do
the survey and to forward this like to anyone that you think wouldn't
mind takeing part in the survey as well.
http://1remote.ca/survey/index.php?sid=95921
Thank you
--
You received this message because you are subscribed to the Google Groups "at home 2day" group.
To post to this group, send email to at-home-2day@googlegroups.com.
To unsubscribe from this group, send email to at-home-2day+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/at-home-2day?hl=en.
better remove your ruby folder manually from the C:\
--
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.
I'm fearful this is a really dumb question but I'll go ahead anyway.
My app is starting to need to go beyond basic auth. e.g. when a user
logs in, I need to check various related statuses, provide distinct
messages, set session vars and such like.
What's not clear to me is, if I provide my own login() method (one
that calls auth.authenticate, auth.login etc, and doing my custom
activities as per docs) ... where (how) is it considered best practice
to implement this?
Problem is similar to that described half way down here:
http://www.djangobook.com/en/2.0/chapter14/
Do I create a separate app dedicated to this task, or simply embed it
in an existing one?
Thanks, H
--
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.
Seems it'd be much easier to just validate the values in the textbox
--
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.
Hey,
I have a form on a website that I would like to be submitted remotely
- to not have to reload the whole page. Only the form should update,
so that e.g. error messages can be displayed. Makes sense :)
However, with the current rails.js javascript in Rails 3, the only way
to do this is using
form_for ... :remote => true
and then render a RJS in the controller, which will do... what? Try to
puzzle the form values and error messages into the invalid form?
Instead, I came up with this spontaneous extension to rails.js:
http://gist.github.com/385167
With something as easy as
form_tag ... :html => { 'data-update' =>
'div_with_the_form_to_be_updated' }
I can now have the controller render HTML to update the form when it
has errors, and still RJS if I would like to do some fancy stuff in
case the submission was successful.
I assume this feature should be included in rails.js. It would take
just a few lines of smart modification.
In the far future, ActionView might even be modified to implement the
good ol'
form_tag ... :update => 'div_to_be_updated'
I would love to hear your opinion about this.
All the best!
--
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.
why would I be getting this error after submitting my form?
NoMethodError in EchantillonsController#create
undefined method `call' for nil:NilClass
This is my create method in the controller:
def create
@echantillon = Echantillon.new(params[:echantillon])
@echantillon.set_eros_values
respond_to do |format|
if @echantillon.save
if params[:echantillon][:vignette].blank?
format.html { redirect_to(@echantillon) }
format.xml { render :xml => @echantillon, :status
=> :created, :location => @echantillon }
else
render :action => "location"
end
else
format.html { render :action => "new" }
format.xml { render :xml => @echantillon.errors, :status
=> :unprocessable_entity }
end
end
end
--
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.
Hi there, i'm having problems with the emulator.
I only get a phone signal about a third of the times i start the
emulator.
I've read on these groups that you have to have an internet connection
before starting the emulator.
Since i'm connected to the internet 24/7 :) this is not the problem
I've also read somewhere that you should try do disable all other
network connections (which i've done) and the problem persists.
I'm using Windows 7 and Android 2.1 + API's emulator.
Thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
dear all,
I want to add a link that is - "Share on Facebook" using which a user
can share a link of a particular article with his friends on FB.
Kindly suggest proper tutorial for the same..
Thanking you.
--
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.
Hi,
Whether content_for and capture helpers will work on ajax updates or in
ajax pagination.
Please help 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi,
--
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.
iWebDirectory.co.uk is a 100% SEO friendly Human Edited General Web
Please select the category you would like to post your business link
and click on Submit Link. You are not required to register to submit
your link. However, we recommend that you create an account so you can
EDIT your link later and you can add all your links from your account
faster. The main advantage of registered clients is that you will be
able to create and edit a personalised business profile with the main
link to your website, in other words, you will have a permanent link
on our directory.
Please read our Submission Guidelines: Failure to follow the
"guidelines" may result in your Web site being declined.
iWebDirectory.co.uk - 100% SEO friendly Human Edited General Web
Directory.
Submit your website or articles for a fast Editor Review.
http://www.iWebDirectory.co.uk
--
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.
I've set up django-filebrowser in my app without any bugs, I already
r is undefined
the error is in js/tiny_mce/tiny_mce.js
When I tried using js/tiny_mce/tiny_mce_src.js the error changed to f
is undefined.
Not sure why this error is appearing, tried downgrading my tinyMCE
from 3.3.2 to 3.0 that didn't work. Been hitting my head on this for 3
days without any possible sign of a resolution.
Help!!
--
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.
إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .
عقارات دوت كوم
----------------------------------------------------------------------------------------
i have this app_controller code in cakephp 1.2:
<?php
class AppController extends Controller {
var $helpers = array('Html', 'Form', 'Javascript');
/**
* Array of components to load for every controller in the
application
*
* @var $components array
* @access public
*/
var $components = array('Auth');
/**
* beforeFilter
*
* Application hook which runs prior to each controller action
*
* @access public
*/
function beforeFilter(){
if (isset($this->params['admin'])) {
// Set the default layout
$this->layout = 'admin';
}else {
$this->layout = 'default';
}
//Override default fields used by Auth component
$this->Auth->fields =
array('username'=>'email_address','password'=>'password');
//Set application wide actions which do not require
authentication
$this->Auth-
>allow(array('display','view','admin_login','index','pindex'));//
IMPORTANT for CakePHP 1.2 final release change this to $this->Auth-
>allow(array('display'));
//Set the default redirect for users who logout
$this->Auth->logoutRedirect = '/';
//Set the default redirect for users who login
$this->Auth->loginRedirect = '/admin/images/index';
//Extend auth component to include authorisation via
isAuthorized action
$this->Auth->authorize = 'controller';
//Restrict access to only users with an active account
$this->Auth->userScope = array('User.active = 1');
//Pass auth component data over to view files
$this->set('Auth',$this->Auth->user());
}
/**
* beforeRender
*
* Application hook which runs after each action but, before the
view file is
* rendered
*
* @access public
*/
function beforeRender(){
//If we have an authorised user logged then pass over an array
of controllers
//to which they have index action permission
if($this->Auth->user()){
$controllerList = Configure::listObjects('controller');
$permittedControllers = array();
foreach($controllerList as $controllerItem){
if($controllerItem <> 'App'){
if($this->__permitted($controllerItem,'index')){
$permittedControllers[] = $controllerItem;
}
}
}
}
$this->set(compact('permittedControllers'));
}
/**
* isAuthorized
*
* Called by Auth component for establishing whether the current
authenticated
* user has authorization to access the current controller:action
*
* @return true if authorised/false if not authorized
* @access public
*/
function isAuthorized(){
return $this->__permitted($this->name,$this->action);
}
/**
* __permitted
*
* Helper function returns true if the currently authenticated
user has permission
* to access the controller:action specified by $controllerName:
$actionName
* @return
* @param $controllerName Object
* @param $actionName Object
*/
function __permitted($controllerName,$actionName){
//Ensure checks are all made lower case
$controllerName = low($controllerName);
$actionName = low($actionName);
//If permissions have not been cached to session...
if(!$this->Session->check('Permissions')){
//...then build permissions array and cache it
$permissions = array();
//everyone gets permission to logout
$permissions[]='users:logout';
//Import the User Model so we can build up the permission
cache
App::import('Model', 'User');
$thisUser = new User;
//Now bring in the current users full record along with
groups
$thisGroups = $thisUser->find(array('User.id'=>$this->Auth-
>user('id')));
$thisGroups = $thisGroups['Group'];
foreach($thisGroups as $thisGroup){
$thisPermissions = $thisUser->Group-
>find(array('Group.id'=>$thisGroup['id']));
$thisPermissions = $thisPermissions['Permission'];
foreach($thisPermissions as $thisPermission){
$permissions[]=$thisPermission['name'];
}
}
//write the permissions array to session
$this->Session->write('Permissions',$permissions);
}else{
//...they have been cached already, so retrieve them
$permissions = $this->Session->read('Permissions');
var_dump($permissions);
}
//Now iterate through permissions for a positive match
foreach($permissions as $permission){
if($permission == '*'){
return true;//Super Admin Bypass Found
}
if($permission == $controllerName.':*'){
return true;//Controller Wide Bypass Found
}
if($permission == $controllerName.':'.$actionName){
return true;//Specific permission found
}
}
return false;
}
}
?>
when i am run this code in cakephp 1.3 i dont see variable in session
(var_dump($permissions);)
where is problem?
note: this code for "cakephp user Auth"
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
> I just have a page with a simple map on it, and i want to increase
What's a div_style line? What code?
http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical
--
You received this message because you are subscribed to the Google Groups "Google Maps API" 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.
On Apr 30, 4:01 am, Gen <linkindias21...@gmail.com> wrote:
Google's translation does not succeed for this message. Please provide
more information, including a link to your web page and instructions
for making it go wrong.
Automatic translation: 自動翻譯
谷歌的翻譯不會成功此消息。請提供更多的信息,包括一個鏈接到您的網頁,使之指示出錯。
--
You received this message because you are subscribed to the Google Groups "Google Maps API" 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.
On Apr 30, 9:23 am, stevef <s.fors...@tiscali.co.uk> wrote:
You didn't find http://groups.google.com/group/google-maps-api/search?group=google-maps-api&q=uk+postcodes
> When I try the postcode through maps.google.com, it is very accurate.
>
> Can any one explain the difference to me and whether there is any way
> the Maps API can use the same techniques as the maps.google website?
Plenty in those search results about the differences. Hopefully, now
the data has been made available Google will be able to use it.
One way the API can use the same data is not to use the API geocoder.
If you can get the data and host it yourself you can do your own
geocoding relatively easily; otherwise you'll need to implement a
proxy script so you can get some other service to do it.
--
You received this message because you are subscribed to the Google Groups "Google Maps API" 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.
On Apr 30, 7:55 am, Martin Lundberg <martin.lundb...@gmail.com> wrote:
You shouldn't need to install anything to get bash completion to work
- it's part of Bash.
--
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.
إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .
عقارات دوت كوم
----------------------------------------------------------------------------------------
GFlot just opened a new Goolge group - http://groups.google.com/group/gflot
For all of you who are not familiar with GFlot, GFlot is a GWT
adaptation of Flot which combines the high quality charting
capabilities of Flot with the power of GWT.
--
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.
I think you mean this?:
java
@UiField
HTMLPanel htmlPanel
ui binder
<g:HTMLPanel ui:field='htmlPanel/>
then in your java you can do
htmlPanel.doStuff();
On Apr 29, 12:07 pm, masch <the.ma...@gmail.com> wrote:
> Helllo,
>
> I am using UIbinder thought an ui.xml and I need to add a dynamic
> control from the ViewClass, I mean I have some part of my ui.xml with
> an especial HTML id and I need find that HTML part from the view and
> add a control. How can do that?
>
> Thank you
> salu2...
> masch...
>
> --
> 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 athttp://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.
Assuming you have a named_route for your logout action, you could try
function bunload() {
document.location.href="<%= logout_path %>";
}
However, I would point out that unload isn't guaranteed to be called &
is even less likely to call & wait to load a new resource so that you
can kill the session. Additionally, it's usually a mark of spam sites
(they do alert popups), so if at all possible you should avoid
onunload.
In reality, if you are using Rails defaults, the session is all stored
on the client anyway, so there is no server load to have the session
naturally expire when the browser quits (not when a user opens a
different url or closes the window). If you are storing sessions on
the server, you can easily setup a sweeper to clear out sessions not
accessed in some time (or set that as a default in your environment)
Niels
instead of logout_path m giving string "/user/logout" which is the url
for logout but its not working why.
please help..
rahul
m trying to call my user controller logout action from onunload
function
On Apr 29, 5:33 pm, Rahul Mehta <rahul23134...@gmail.com> wrote:
> hiii niels
>
> thank for reply.
>
> can u help me how to run logout action of controller user on
> window.location.href..
>
> thanks
>
> rahul
>
> On Apr 29, 5:15 pm, Niels Meersschaert <nmeersscha...@mac.com> wrote:
>
>
>
> > Ruby files aren't evaluated when they are in the Public folder, their contents are just returned to the user. You would need to have it call a controller action to run code.
>
> > On Apr 29, 2010, at 8:01 AM, Rahul Mehta wrote:
>
> > > hii
>
> > > i have my ror app website want to do destroy session on browser
> > > close ,
>
> > > please help how can i destroy..
>
> > > i have used javascript function on body unload
>
> > > function bunload()
> > > {
> > > document.location.href="del.rb";
> > > }
> > > </script>
> > > </head>
> > > <body onunload="bunload()">
>
> > > and i have putted the del.rb file in my public folder and in that i
> > > have putted the following code
>
> > > session[:user] = nil
>
> > > but its not destroying the session..
>
> > > please help..
>
> > > thanks
>
> > > rahul
>
> > > --
> > > 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 athttp://groups.google.com/group/rubyonrails-talk?hl=en.
>
> > --
> > 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 athttp://groups.google.com/group/rubyonrails-talk?hl=en.
>
> --
> 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 athttp://groups.google.com/group/rubyonrails-talk?hl=en.
--
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.
Background:
Problem:
Using ACTIONSEND and Intent.EXTRA_STREAM (a) requires the file to be
on sdcard and (b) displays a mail client UI. I found a library called
javamail_lbmod.jar but it is over 1MB large; I feel thats overkill for
what I need.
Anyone know of a small library or other solution for my issue. I could
live with the sdcard requirement if I could just suppress the mail
client UI.
thanks
Jay
--
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
Hi, I'm designing travel document application. Here's the process:
CREATE TABLE `documents` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`document_number` varchar(10) NOT NULL,
`approved_applicant_id` int(10) DEFAULT NULL,
`status` varchar(15) DEFAULT NULL,
`app_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE
CURRENT_TIMESTAMP,
`created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
)
CREATE TABLE `approved_applicants` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL,
`pob` varchar(25) DEFAULT NULL,
`dob` date NOT NULL,
`file_num` varchar(10) NOT NULL,
PRIMARY KEY (`id`)
)
So what I want to ask is how I can display applicant data and travel
document in one page ?
If we submit this form. the applicant data will be saved to
approved_applicants table and a record in documents table will be inserted.
What I've already done is I put this code in ApprovedApplicant controller
function result() {
if(!empty($this->data)) {
//is this the right way to pass document data to the view ?
$docs =
$this->Document->find('first',array('conditions'=>array('Document.document_type_id'=>1,'status'=>'new'),
'fields'=>array('MIN(document_number) as max_doc')));
$this->set('docs',$docs);
$this->data =
$this->Applicant->find('first',array('conditions'=>array('Applicant.reg_num'=>
$this->data['Applicant']['reg_num'])));
} else {
$this->redirect(array('controller'=>'applicants','action'=>'search'));
}
}
function process() {
if(array_key_exists('confirm',$this->params['form'])) {
//save applicant data to approved applicants table
//insert new record in documents table with newly created approved
applicant id as foreign key
}
} else {
}
}
result.ctp
<?
echo $form->create('Applicant', array('action'=>'process'));
echo $form->input('name');
echo $form->input('pob');
echo $form->input('dob');
echo $form->input('address');
echo $form->submit('confirm', array('name'=>'confirm', 'div'=>false));
echo $form->submit('cancel', array('name'=>'cancel', 'div'=>false));
echo $form->end();
//document output should be here ??
?>
Any help will be greatly appreaciated
I use cake 1.2
Thanks
--
View this message in context: http://old.nabble.com/Displyaing-two-models-data-in-a-view-tp28408236p28408236.html
Sent from the CakePHP mailing list archive at Nabble.com.
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
On Fri, Apr 30, 2010 at 5:03 AM, Felippe Bueno <felippe.bueno@gmail.com> wrote:
I'm sorry - what is this based on? There haven't been any substantive
changes to contrib.auth in 1.2. It's not on the official "new
features" list. There have been some discussions about some potential
changes, but a design hasn't even been settled on yet.
Answering the orignal poster - the hacks you've found are, at present,
the only way to do it. This is something we hope to address in the
near future.
Yours,
Russ Magee %-)
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Visit http://usmailmoney.webs.com to see exactly how this legitimate
--
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.
Hi
Our site brings you the latest information on BEST SEX TODAY.
It's a brief and straightforward guide on BEST SEX TODAY, and it's
Free!
Best Regards
Go Girls
www.inspho.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.
إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .
عقارات دوت كوم
----------------------------------------------------------------------------------------
dear friend,
in order to thanks for our company →_→ http://www.shoes2.us/ new
and order costomers,my boss make a determind that you(He,She,)can get
a best discount and a free gift if you shall buy something from our
company this month. i hope you may buy something early from our
company→_→ so stay tuned!!!
im looking forward to your early place an order.→_→ http://www.shoes2.us/
Following are some of the famous brands that we can supply:
① Footwear: all brand name sport shoes, children shoes, EVA clogs,
beach slipper, climbing shoes, canvas shoes, Kid shoes, etc.
② Apparel: all brands Tag T-shirts, shirts, coat, jacket, hoody,
Jeans, shorts, Children Clothing, Baby Clothing, underwear, etc.
③ Accessories: All brands Handbags, Wallets, Purse, Sunglasses,
Watches, Caps, BIKINI, Hair straightener, etc.
We sincerely find serious partners and establish a long-term business
relationship. Please email us freely at any time and we are on the
service for you, if you are interested in our products, please contact
us !
finally,i wish you happy every day and lucky forever.
--
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.
I need to control emulator screen orientation remotely and
change the screen to landscape:
# service call window 18 i32 1
change the screen to portrait:
# service call window 18 i32 0
However, they do not work for me.
Should these commands work? If not, are there any other ways to do so?
Thanks,
S.R.
--
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
I wanna use GWT 2 at my company, but I didnt test yet if will it work
--
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.
Hi,
thank you for reading my post. I've got s simple question: What's the
correct technical term for data which IS NOT calculated and data which
IS calculated regarding database design.
Simple example: saving a user message in a corresponding table vs.
counting all messages of a user.
If you also know the german expressions, you're welcome to post them,
too. :)
Thanks for your help,
ms
--
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.
إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .
عقارات دوت كوم
----------------------------------------------------------------------------------------
I'm trying to display a generated .png plot via send_data(), but it
Some particulars:
I'm running gnuplot through a pipe to generate a plot in .png format.
(I've tested the code by writing its output to a file and displaying it
-- it works.) My Report model receives the .png image as a string:
class Report << ActiveRecord::Base
def imagedata
image = GnuPlot(@gnuplot_commands)
end
end
My Controller uses send_data() to serve up a page:
class ReportsController < ApplicationController
def plot
report = Report.find(params[:id])
send_data(report.imagedata, :type => 'image/gif')
end
end
[FWIW, without really understanding it, I also tried added an :encoding
=> 'utf8' to the send_data call -- no change.] Finally, my View presents
the result:
<img src="<%= url_for(:controller => 'reports', :action => 'plot')
-%>" />
However, the send_data() call results in a server error:
ArgumentError (invalid byte sequence in US-ASCII):
<internal:prelude>:8:in `synchronize'
.../Ruby/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
So the question: Where do I specify the encoding? And what encoding is
appropriate for a .png binary?
BTW:
"rails --version" => Rails 2.3.5
"ruby --version" => ruby 1.9.1p376
"mysqul --vesion" => Ver 14.14 Distrib 5.1.36
OS = Mac OS X 10.5.8
--
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.
Info on this error is elusive. It occurs in versions greater than 2.0.
I am firing a one time alarm using a Pending Intent. To create the
PendingIntent I pass an intent (alarm), context and, receiver class
into a function called startAlarm.
alarm.setClass(context, receiver);
PendingIntent alarmIntent = PendingIntent.getBroadcast(context, API_ID
+alarm.getIntExtra(ALARM_ID, -1), alarm,
PendingIntent.FLAG_CANCEL_CURRENT);
I can call the function without error before the alarm occurs ... but
after the PendingIntent has launched I receive
Can't use FLAG_RECEIVER_BOOT_UPGRADE here, when calling getBroadcast()
This occurs with all FLAGS except NO_CREATE.
What exactly is causing this error?
Thanks for any info.
-Cody
--
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
On Apr 29, 3:01 pm, AS <aurillia...@gmail.com> wrote:
> how long has gamine been around?
Let's see... I came up with the idea on Dec. 25. (I had lots of time
for thinking about it while sitting in the car on the way to and from
Christmas dinner.) So I started reading Android developer
documentation, downloaded the SDK on Dec. 31, wrote the first line of
Gamine code on Jan. 1, ordered a Nexus One about a week after that,
and released version 0.1 in late February. So she's still a young
thing. :)
> but because it didn't utilise the NDK it was far, far too slow.
I'm doing everything in Java, but I haven't found performance to be a
problem, at least on my N1. The graphics is all OpenGL, of course,
and the most important thing for performance is not to do any object
allocation at times when you care about speed. And of course you need
to choose algorithms carefully. But I've been doing 3D for a long
time, and I write physics engines for a living, so I have a pretty
good background on how to do that.
Which isn't to say that I'm not eagerly waiting for the Dalvik JIT to
be released. :)
> Can you give me any more details? Are there demo apps yet?
There are several examples included when you download it. They're
more targeted at "showing you how to use it" than "showing off what
the engine can do," but they still do the latter to some extent.
In terms of features, the main elements are rendering, physics, and
infrastructure. Rendering includes scene graph management, lighting,
texturing, mesh creation, etc. Physics currently means rigid body
simulation, including contact modeling and collision detection.
Infrastructure includes running the event loop, managing input, and
things like that. I can go into more detail about any of these you're
interested in.
Peter
--
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
I have enableScrollWheelZoom enabled at hikect.com yet it doesn't
--
You received this message because you are subscribed to the Google Groups "Google Maps API" 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.
Hi Peter,
I'm very interested in the possibility of a 3D engine for android -
how long has gamine been around? A few months back I started work on a
3D game - I ported most of the Rokon engine to 3D and started using
that, but because it didn't utilise the NDK it was far, far too slow.
Does gamine have any home other than sourceforge? Can you give me any
more details? Are there demo apps yet?
Thanks
AS
--
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
ONLINE MAKE MONEY FORUM::..MAKEMONEY.USERSBOARD:: A PLACE FOR ONLINE
http://makemoney.usersboard.com
http://makemoney.usersboard.com/latest-news-f4/
http://makemoney.usersboard.com/search.forum
--
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.