similar to: base64 within module

Displaying 20 results from an estimated 7000 matches similar to: "base64 within module"

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 Mar 08
1
RubyRails ActiveRecord base64 encode/decode of binary data
Hi, I have binary images stored in a table which I wish to encode/decode with base64 before reading into html object: <object data="data:image/foo;base64, ..base64 data.." />. How can I do this in RubyRails? -- Regards Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
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
2013 Mar 11
12
Error: stack level too deep
I''m running a previously working set of modules with the Puppet master version 3.1.0-rc2. I''m getting the Error: stack level too deep Here is a chunk of the debug Debug: Scope(Class[Zabbix]): Retrieving template zabbix/zabbix.conf.php.erb Debug: template[/etc/puppet/environments/production/modules/zabbix/templates/zabbix.conf.php.erb]: Bound template variables for
2013 Aug 28
3
passing hiera data to custom fact
I need to create a custom fact based on a parametric information (I need to get the IP of another machine knowing the hostname, the machine name could be different for different nodes so I need it parameteric and I recover the machine hostname from a hiera, but for the purpose of the question it could also be a data in the module definition). I''m installing a cluster and need to get
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?
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 Feb 18
3
Displaying a base64-encoded image within an rhtml template
I''m working on generating FedEx labels for quick & easy shipping. FedEx returns the label as a base64-encoded string. Assuming that ''match'' is the base64 string containing the label data, here is what I have to display the image: send_data image, :filename => ''fedex_shipping_label.png'', :type => ''image/png'', :disposition
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
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
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"}
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
2012 Oct 17
1
generate 10 UUID records and save it it database in rails
I need to create certain number of UUId records(based on the selection of drop down) and save it in the database. Now I am generating only one unique id. Can this be done in the model in this way. Or do I need to write a helper file for that?? def generate_unique_token=(value) self.secret = Base64.encode64(UUIDTools::UUID.random_create)[0..8] end In my controller........... def create
2016 Nov 15
3
SHA256 + base64 fingerprint format
Hi, I'm now adding fingerprint format method to golang crypt library. Here is the change set for it: https://go-review.googlesource.com/#/c/32814/ I'd like to make sure why the trailing "=" is removed from the result of base64. Does anybody know? Thank you! Ryuzo Yamamoto
2013 Nov 25
2
mcp ping return no responses
I''m trying to install mcollective on an environment for the first time and I''m having troubles: MC client (also the puppet master) activemq.xml <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The
2007 Mar 29
2
rmagick - Incorporating dynamic images
Hi -- I have imagemagick and rmagick installed so that I can produce images from code to a file. Can anyone direct me to where I can find guidance on how to have those images included on a web page (e.g., <img src="my_dynamically_generated_image") instead of having them sent to a file? Thanks for any input. ... doug --~--~---------~--~----~------------~-------~--~----~ You
2015 Mar 02
2
Attributes are base64 encoded
Hello, I've added a samba4 as a second DC in a network where the first DC is a Win2k8R2. The join seems to run smoothly. But after the join an ldapsearch -LLL -x -H ldapi://%2Fvar%2Flib%2Fsamba%2Fprivate%2Fldap_priv%2Fldapi on the samba, return some strage things: ? some attributes like unicodePwd and supplementalCredentials are missing ? lots of attributes are base64 encode (ex: memberOf::
2009 Apr 24
4
Long string in crypting
I use a solution to crypt a string that I found using OpenSSL. But the crypted string becomes very long, too long for a varchar 255 to hold it. What can I do to make it shorter? Or should I just use text as column in the mysql db? public_key_file = ''lib/public.pem'' public_key = OpenSSL::PKey::RSA.new(File.read(public_key_file)) @encrypted_string =
2006 Jul 26
11
Finding perl-MIME-Base64
I am told by yum localinstall that I need this for TinyCA2. When I search for it, it seems like it SHOULD be part of basic perl package, but it is hard to argue with yum on dependencies.....