Displaying 20 results from an estimated 4000 matches similar to: "AR object return nil on save"
2008 Sep 04
3
MySQL connection collation
Hi!
I have ran on problem with collations. In database.yml I have set:
encoding: utf8, but when in console run:
>> ActiveRecord::Base.connection.collation
=> "latin1_swedish_ci"
It is Rails 2.1, mysql gem 2.7, mysql 5.1.22. This leads to errors like:
Mysql::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and
(utf8_general_ci,COERCIBLE) for operation
2006 Sep 12
2
Generate JS from RoR - strange delay with send_data
Hi!
I need to generate some JS from Ruby. This is no AJAX related stuff so
RJS templates are not help to me. Also I want to not mix JS with HTML,
so putting JS in .rhtml templates is no go for me.
Currently I made some action in controller, prepared JS code and I''m
sending it via send_data as ''text/javascript''. In .rhtml templates I use
<script> tag with src
2007 Apr 23
3
Troubles with using gems in Rails
Hi!
I''m observing some problems using gem inside Rails. My understanding is
that after following sequence in irb:
$ irb
irb(main):001:0> require ''rubygems''
=> true
irb(main):002:0> require ''active_record''
=> true
irb(main):003:0> gem ''acts_as_taggable''
=> true
I should have access to acts_as_tagable mixins, like:
2007 Aug 22
2
Sanitize my params and the create method
If I call .create on the param structure, are the parameters being
passed to the create method automatically sanitized for me?
e.g. Journalentry.create(param[:journalentry])
Do I have to worry about any malicious scripting making its way into the
creation of the record?
Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this
2009 Mar 05
1
Constructing a barplot in R
Hi all,
3. The probabilities are 0.06, 0.21, 0.24, 0.18, 0.14, 0.10, 0.04, 0.02 and
0.01 that an airline will
receive 0,1,2,3,4,5,6,7 or 8 complaints per day about its luggage.Find
e(x) and e(x^2)
Give the R commands you use and the two numerical values.
Use the sample function to simulate complaints over 500 days. Give
the R command you use and draw a barplot of the simulated data. Comment
2006 Jul 20
3
Output to browser in .rhtml templates
Hi!
In .rhtml template I''m trying to create some output, which should be
sent to browser. But this is inside <% %> not <%= %>, so how can it be
accomplished? Default output is directed to log file, so puts "output"
does not send to browser but to log file...
--
Posted via http://www.ruby-forum.com/.
2016 Aug 30
3
AD, ACLs on LDAP objects not replicated?
Hi all,
Playing with delegation today we delegated rights to some user on some OU
and its contents for it can modify users inside that OU and children.
We used "advanced view" in ADUC then "properties" on our delegated OU, then
"security" tab, and finally we gave rights to our user.
Perhaps this process is not correct but we believe it is a valid process to
delegate
2018 Jul 09
4
NHW Project - some update
Hello,
I don't have advanced on the NHW Project this past month, but I have
definitely validated its characteristics and this new version.
The NHW Codec preserves or enhances image neatness and sharpness, which
translates that on good quality images the NHW Codec is globally better
than HEVC, and on degraded (with blur, artifacts) images it is worse than
HEVC because it lacks of precision. I
2017 Nov 27
2
NHW Project - speed comparison with x265
Hello,
I am very slowly working on the NHW Project.I recently made a speed
comparison with x265 and wanted to share it with you.
On my processor Intel Core i5-6400, in average the NHW encoder (totally
unoptimized) is x10 times faster to encode than x265 (png decoding time
removed), in average 30ms vs 300ms for a 512x512 24bit color image, and in
average the NHW decoder (totally unoptimized) is
2017 Aug 25
4
NHW Project - news with Xiph.org
Hello,
These last 2 months, I have talked again with Monty Montgomery about the
NHW Project and he told me that Xiph.org would like to encourage the NHW
Project development.That's just great!
I'll see what Monty will do on his side (and when he has time), but he also
told me that the NHW codec has merits but there must be an effort to
demonstrate them.
The advantages, merits of the NHW
2018 Mar 10
2
NHW Project - lower quality settings
Hi David!
Many thanks for your very encouraging and kind feedback!!! (Hope you don't
mind that I made your post public on the Theora channel).
I try to be the more sincere as I can in my posts.Some people suggested me
to make demo pages to explain how the codec works step by step, and I
realize that it would be good, because certainly it will show that the NHW
codec is not that complex and
2012 Sep 23
2
Find by id in the view template dynamically
Rails 3.1.3
I have a model ''Airline'', whose STRING column is ''company'' only.
Also, another model ''Plan'' has an INTEGER column ''airline_id''.
I would like to show the ''company'' name (string) in a template like
<% @plans.each do |plan| %>
Airline: <%=
2006 May 13
0
Rails version locking
Hi!
I''ve run on issue with sticking to older rails version on my boxes.
I tried to use
http://wiki.rubyonrails.com/rails/pages/HowtoLockToSpecificRailsVersions
but when running WEBrick (with proper changes to config/environment.rb),
it thorws error: can''t activate rails (<= 1.0.0), already activated
rails-1.1.2.
I did play a little with debugger and found out, that it
2018 Jul 10
1
NHW Project - some update
You're welcome!
On Tue, Jul 10, 2018, 4:50 AM Raphael Canut <nhwcodec at gmail.com> wrote:
> Hello Dave,
>
> Thank you very much for your help!
>
> Cheers,
> Raphael
>
> 2018-07-10 9:39 GMT+02:00 Dave Johnson Games <davefilms.us at gmail.com>:
>
>> Let me do some looking.
>>
>> On Mon, Jul 9, 2018, 4:55 PM Raphael Canut <nhwcodec at
2021 Dec 02
1
NHW Project development
Raphael,
Some 15 years ago I implemented limited functionality Theora in our cameras FPGA (it took me 6 month of hard labor), and then gave up - it is a very crowded space and it is difficult to compete with more advanced codecs. And for our other work we anyway need almost raw image data, so we are using JPEG-based JP4 format (https://community.elphel.com/jp4) that we originally developed for
2021 Dec 02
1
NHW Project development
Raphael,
I do not believe it is possible to build a viable community around most hardware projects except super-universal based on very cheap/high-volume products like Pi or Arduino. We see the commercial benefits of Free Software/Open Hardware as it adds value to the hardware as users are ready to pay extra for the Freedom.
Andrey
---- On Thu, 02 Dec 2021 12:59:34 -0700 Raphael Canut
2018 Apr 28
2
quality improvement of -l4, -l5, -l6 high compression settings
Thank you so much Sir!!!
If you have time, do not hesitate to let us know what you would think of
the NHW Project.Any remark, opinion would be very welcome!
Many thanks again!
Best regards,
Raphael
2018-04-28 23:02 GMT+02:00 Dave Johnson Games <davefilms.us at gmail.com>:
> Cool, I'll check it out.
>
> On Sat, Apr 28, 2018, 3:09 PM Raphael Canut <nhwcodec at gmail.com>
2018 Jul 15
3
x265 and NHW comparison images posted to https://nhwcodec.blogspot.com/?
Also, don't forget the option I gave you Ralph, where you can have access
to one of my VPSes. We can create a subdomain for free, but if you want
something like nhw.com, you'd have to register the domain name yourself,
which wouldn't cost too much money.... Then I can help configure it to
point to your page on my VPS. I'll host it all for free. You'll have
your own user
2018 Apr 28
2
quality improvement of -l4, -l5, -l6 high compression settings
Hello Dave,
Thank you very much for your support and your interest.
Actually so few people took a look at the NHW Project, but with this
version the NHW Project is becoming very interesting, it is royalty-free
and very fast furthermore.
Really if you could find time, I would be very interested in any opinion
from the Xiph.org community!
Cheers,
Raphael
2018-04-28 21:40 GMT+02:00 Dave
2018 Aug 17
2
NHW Project - new -l8 "very high compression" setting
Hello,
For those interested, I have added a -l8 "very high compression" setting to
the NHW Project.
I have added an experimental processing to remove details and preserve
neatness.I have also now a fast estimation of entropy of wavelet
coefficients and I use it accordingly to the image complexity but it is a
very first version... With these new processings, the entropy coding
schemes