similar to: @@state_secret

Displaying 20 results from an estimated 400 matches similar to: "@@state_secret"

2008 May 24
19
Camping 2.0 - What''s left?
I''ve just sent a pull-request to _why with my changes[1] and here is some things that I think needs to be done before a (possible) release: * The cookie session is named Camping::Session and is placed in camping/session.rb. Maybe this should be called Camping::CookieSession or??? * The ActiveRecord session is named Camping::ARSession and is placed in camping/ar/session.rb. Maybe it
2008 Jun 06
2
Messy Cookies
It looks like everyone has tried to fix the cookies lately, and no-one managed to get it 100% correctly. The current implementation doesn''t set the path correctly, and you can''t use @cookies in a #service-overload. Qwzybug''s patch fixed only the sessions. Jenna''s patch won''t allow to set complex cookies (@cookies.key = {:path => "/path",
2008 Jun 06
7
Attention Judofyr: Broken cookies in 2.0
Hey Judofyr! Fix this! When someone sets a cookie using @cookies.something = ''data'' it should be set with the path going to the camping app''s root, not with no path, otherwise only that controller with the same parameters will ever see the cookie again! Please change this code: > @cookies.each do |k, v| > @response.set_cookie(k, v) if o[k] != v > end
2008 May 19
6
Sample Code, quick simple openid auth
You''ll need to install the ''openid'' gem for this, and require it in your camping app: class Login < R ''/login'' def get this_url = ''http:'' + URL(''/login'').to_s unless input.finish.to_s == ''1'' # start doing the auth here begin
2008 May 17
4
Setting cookies in service overloader thingo
I''m implementing a simpler version of the Cookie Session Store in Rails 2.0. If you know what that is, skip the next paragraph. A cookie session store stores the session data inside cookies, on the client, and signs them using a secret string, hashed together. The user can decode the cookie easily if they know much about computers and see what''s inside, but they
2008 May 23
8
An issue for consideration
We''ve just come across an issue for consideration. I am avoiding some words which would allow people to find this message in an internet search who have questionable intentions, but wish to communicate a strong sense of caution. Consider someone who adds extra methods to their controller which they use in their main get/post methods to do things or to get secret data. Consider
2007 Jan 06
4
? camping apps in gems
So would you like this: $ wget http://rubyforge.org/gems/junebug-0.0.18.gem $ camping junebug-0.0.18.gem Or should it be: $ gem install junebug $ touch junebug.gemcamp $ camping junebug.gemcamp _why
2008 May 18
1
Problem with cookies in CGI mode
So it took me ages to figure out how to get cookies set in my app, and here was the problem. I''m using camping''s built in CGI support, and with that you can have something like domain.com/blah/app.rb and that will go to your / route, which is okay, except that the path the cookies are set with is domain.com/blah/app.rb/ So if you try to use that url, none of your
2008 Mar 11
4
Dropping Root
Hello Campers I''m not sure this is the right list to ask but: I''m using the junebug wiki (which is written in camping) for my own personal wiki. I''d like it to behave as a proper daemon, so it will start up at boot, get stopped properly at shutdown, keep a pid file in /var/run etc. This requires a little messing with the wiki script junebug makes in the wiki
2007 Oct 16
6
Failure trying to test ApplicationController
I''m trying to write some tests for the ApplicationController as shared tests that can be run in all of my other controller tests, but am getting a nil.rewrite error. Below is what I have... describe AccountController do it_should_behave_like ''Application controller'' end describe ''Application controller'', :shared => true do it
2008 Jan 14
5
junebugwiki error on startup
Recently I had to restart my Junebug wiki and I''m receiving this error: /usr/lib/ruby/gems/1.8/gems/junebug-0.0.18/lib/junebug.rb:4: undefined method `require_gem'' for main:Object (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/application.rb:159:in `load'' from
2008 May 21
32
Rack, Camping 2.0++
=== 1. Camping on Rack === I''ve just finished rewriting Camping to use Rack in the "core". I got rid of (a little less) than 1kB in camping.rb and removed lots of un-necessary files (lib/server/*.rb, fastcgi.rb & mongrel.rb). bin/camping does now only provide WEBrick, Mongrel and console-support and should only be used in development. It uses Rack::ShowExceptions to catch
2006 Apr 18
4
Mixin variables
I''ve created an access control module that I''m including in several different controllers. Everything works fine, but I want to allow each controller to override the default login page with something like this: set_login_pages :secure => ''my_login'' In my module, I''ve set up the set_login_pages method like this: def self.included(base)
2012 May 02
17
ChillDB License
A few of you sounded interested in using it. I haven''t explicitly put a software license on it, so I guess it''s not technically FOSS yet. What licenses are good? BSD? Public Domain? ? Jenna -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20120502/96b87580/attachment.html>
2006 Jun 07
3
Silly question re: scoping of controller actions
Say that there''s a piece of functionality I want to call everytime the controller is invoked, regardless of what action I am calling. Where do I put that, exactly? Can I do that? -- Posted via http://www.ruby-forum.com/.
2011 Dec 06
3
Riak on Camping
Good day, does anyone here have a clue on how to make use of the NoSQL database "Riak" with Camping? I am building my website and Riak seems like pretty much the ultimate database! This would probably ruin every little feature in ActiveRecord, I don''t think I''d be able to do any has_many''s or belongs_to but I''d LOVE to be proven wrong. As far as
2014 Jan 07
1
max rsa key length, sym. cipher and digest recommendations ?
Hello, I understand that I can use the openssl ciphers and digests available on my systems, i.e. those in the list generated by "openssl list-cipher-commands" and "openssl list-message-digest-algorithms". I want to create a admin vpn network between my servers and my workplace. Network throughput is not a big issue, I am using ssh and the cli, however I would also do
2001 Apr 05
1
IPX <-> Starcraft (under Wine)
ok I've got Starcraft loaded in wine...works fine ;-) I have IPX installed within the kernel.. and have the following commandline.. modprobe ne2k-pci ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up route add -net 192.168.0.0 netmask 255.255.255.0 eth0 ipx_interface add -p eth0 802.3 0x12345678 but it seems that Starcraft cant see the IPX thingo..err anyone know how to get starcraft to
2007 Nov 08
26
Mongrel wiki?
Dear Mongrels, The same questions keep coming up over and over on the list, which is ok, but not really optimal. If we added a wiki to the Mongrel site to handle FAQs, what wiki should it be? Required features would be: * Spam protection * Doesn''t look shitty I would probably spring for Trac (and also migrate the bugtracker) if noone else has opinions, but I''m sure some of
2006 Jan 30
14
RoR admin system
I''m preety new at RoR (and programming), I tried a few tutorials, and really like the RoR simplicity, but my knowledge of the framework still isn''t very good (to be true, i understand the basics, but not everything that''s in the tutorials). But still I''d like to create a website which has: - front end interface (with no edit functions) - admin interface