similar to: RubyRails ActiveRecord base64 encode/decode of binary data

Displaying 20 results from an estimated 6000 matches similar to: "RubyRails ActiveRecord base64 encode/decode of binary data"

2007 Feb 26
24
Ruby/rails port of Cocoon/hibernate
Hi, I''m currently running an apache/jboss cocoon/flow/hibernate/ajax paypal (directpayment) project and am looking into the possibility of porting it across to ruby/rails. For that reason I would like to know the following: 1. Can I call my java classes or would I be looking at a complete rewrite in ruby? 2. How effective is ruby in terms of seperation of concerns regarding design from
2012 Oct 15
2
base64 within module
I have to convert a string in base64 before placing it inside a template with puppet. Is there a function available and how? Thanks Luca -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/ZgLjlG_IeI4J. To post to this group, send email to
2007 Mar 05
2
SOLVED:Re: How to select postgres for usage instead postgres-pr?
Figured it out chaps..not to worry!!! -- Regards Andrew On 05/03/07, Andrew Madu <andrewmadu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > further to my additional email the gem build for postgres did not work, so > I downloaded and copied postgres.so into: > > C:\pgRails\lib\ruby\site_ruby\1.8\i386-msvcrt > > Again, how do I point rails to using this
2006 Jan 30
4
How to encode URLs?
How does one encode URLs in ROR? Thanks Frank --------------------------------- Bring words and photos together (easily) with PhotoMail - it''s free and works with Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060130/60280869/attachment.html
2007 Dec 03
1
depcryption and base64
Just wondering is anyone can explain this code to me: Base64.encode64(@key.send("#{key_type}_encrypt", text)) I have this code the encrypts some information. This part seems to work fine. I using some software on the back end that I have written in VB to decrypt it and it seems to have issues. So I just wanted to make sure that the code i have written in Ruby does what I think it does,
2007 Nov 20
0
Problem while Reading Url in rubyrails application
hi , can anybody help me, while iam running rubyrails application url-> http://localhost:3007/member_account/new iam getting the following error. NoMethodError in Member_account#new Regards, Nagarjun -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2005 Dec 14
3
Advanced routing question.
Hello All, I''m making a quick application that tracks outgoing links to referral sites. I need to track the user and the url they went to so the easiest way would be to take the entire url as a parameter and log that into the database. I was wondering if I could do something like this with routing: http://www.example.com/user/jump/http://www.myvendor.com/referral.php?
2006 Mar 28
2
Rails Oracle connection
I''m using the following configuration in the database.yml to connect to Oracle, however I could not connect while the settings seems to be correct: development_oracle: adapter: oci host: 127.0.0.1:8080/XE username: rubydb password: rubyrails What is wrong here? Can anyonbe help me? -- Posted via http://www.ruby-forum.com/.
2005 Dec 27
3
CMS centos3
Anyone using or recomend a content management system that will install without out a lot of mucky muck on a Centos3 system? I looked at Zope but it needs a newer Python, Midgaard looks likes it's geared towards RHEL4. OpenCMS looks like it runs on java so that might work. I have yet to look at Rubyrails and Django.
2008 Dec 13
2
Need Help in converting php encryption decryption code to ruby on rails
Hi guys i found this encryption decryption in php and try to convert it in rails but i am unable to successfully convert it. So plz help me. I you write the whole conversion code then it will be great. PHP code is like this ================ # #/********************************************** #** #** MD5 block cypher #** #** Author..: leapinglangoor [
2008 Apr 10
2
Testing an action behind HTTP Authentication
Greetings, I''m writing an integration test and would like to make sure that, with the correct credentials, I get the proper response. The problem is I don''t know how to use the ''get'' method to attach the username and password to the request. For example, when using RSpec''s Story tests.. When("I request the user information for that
2007 Mar 01
1
PostgreSQL primary (sequence) key issue
Hi, I have a sequence set up on one of my tables called seq_user_mytable. I tried the following with no joy: set_primary_key "user_id", :sequence => "seq_user_mytable" and: ActiveRecord::Base.seq_user_mytable again with no joy. How do I implement a sequence in Rails/ActiveRecord? -- Regards Andrew --~--~---------~--~----~------------~-------~--~----~ You received this
2006 May 17
6
ActiveRecord#to_param
Hello, to implement some some kind of optimistic locking, I want to build a view, where an object is displayed together with a link containing the data of the displayed object. My first try looked something like <%= object.object_discription %> <%= link_to "action", :action => "take_action", :data => object %> this won''t work because object is of
2011 Sep 17
1
[PATCH 0/1] Base64-encode non-printable data
I expect this patch to require a second version. I mainly wanted to spur discussion: * I firmly believe hivexml needs more encoding checks before printing. Base64 encoding made the most sense as hivexml already uses it elsewhere. Is this the right direction to go, to escape non-printable data? * Should there be an enumeration for encoding decisions? I'm returning strings because it felt a
2006 Jul 25
6
form and pagination question
Hello, How do I get params from a form to use with a paginator? debug(params) shows this city: !map:HashWithIndifferentAccess id: "1" but in my controller, when I try to use @hotel_pages = Paginator.new self, Hotel.count(:conditions => "hotels.city_id = params[:city][:id]"), 3, @params[''page''] it doesn''t work. I suppose it''s a simple
2009 Sep 30
3
How to search and replace all urls on a HTML string using RUBY gsub
Hi , I trying to search and replace all urls on a HTML string using gsub . CODE html = "<a href=''http://site.com.br''><img src=''http://site3.com/ image.jpg''></a><a href=''http://newx.com.br''><img src=''http://localhost/ imagem.jpg''></a>"; pattern = /<a
2006 Apr 19
2
how to pass a hash as a parameter in link_to_remote
When using link_to_remote, I''d like to pass along some auxiliary data in the request. It''s a hash of dynamic data that can change with each request. But I get an error when rails trying to "stringify" the hash. For the regular link_to, it works because it turns the hash into a regular GET-like query string. I''m expecting to be able to get my hash as
2006 Jun 07
2
Hash flattening on paginator link_to
Hey I need some help with pagination and the link_to in the view. I''m trying to include a hash in the pagination link_to params and it keeps flattening out my hash. Example: Here''s my hash called @answer: "answer"=>{"6"=>"9bf31c7ff062936a96d3c8bd1f8f2ff3", "7"=>"6f4922f45568161a8cdf4ad2299f6d23"}
2006 Oct 17
2
how to do scheduling in rubyonrails
can you please tell me how to cerate an automated mail generation in rubyrails in specific time period .My requirement is to check the user last log in and generate an automated mail after 3 months or one year --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this
2008 Apr 16
2
base64 decoding failed!
Dear all, > I hav installed recoll based on xapian. > when i run recollindex command it throws following error: > > "mh_mail.cpp: 162: decodeBody: base64 decoding failed !" > > Anybody has any idea? > > > > -- > ../tushar