Displaying 20 results from an estimated 40000 matches similar to: "How to store objects in memory between requests for all sessions?"
2012 Feb 06
3
Passing class parameters to hiera
I am using puppet 2.6.11 and want to pass parameter for implementing
sudo for mulitple users. So here is my simple code, which I would like
to pass to hiera to specify user name lookup. Appreciate any help,
thanks in advance.
class sudo( $name) {
#Class:: sudo
#
#
package { "sudo": ensure => present, }
file { "/etc/sudoers":
owner => root,
group => root,
2007 Oct 07
1
How to store a Mechanize object in the database?
Hi,
I am trying to save a Mechanize object in database (using a Rails Model).
But the save operation throws a TypeError
Considering that "agent" is an instance of a Rails Model and "user" is
defined as a "text" type in the Model.
irb(main):039:0> agent.user = WWW::Mechanize.new
#<WWW::Mechanize:0xb71295f0 @follow_meta_refresh=false, @key=nil,
2008 Nov 20
2
How to Clear all variables stored in current and previous sessions
Is there any function in R to clear values from all variables stored in
current and previous sessions? R site search do not give the desired result
at all, all results are about to clear screen only not variables.
Thanks,
--
View this message in context: http://www.nabble.com/How-to-Clear-all-variables-stored-in-current-and-previous-sessions-tp20604724p20604724.html
Sent from the R help mailing
2016 Dec 16
0
deleted .dbus/sessions-bus/[fn]
On Fri, 16 Dec 2016 22:29, geo.inbox.ignored <geo.inbox.ignored at ...> wrote:
>
>
> greetings.
>
> while using rsync to copy /root/* from tower box to laptop computer, i
> accidentally over wrote .dbus/sessions-bus/[fn] on laptop computer.
>
> ran extensive web search, including;
>
> http://www.freedesktop.org/software/dbus/
>
> to find how to replace
2010 Sep 08
2
Rails 2.3.9 breaks sessions with Active Record or Memcache store
A Rails 2.3.9 app with Active Record or Memcache session store will never
send the session ID cookie to a client if the client doesn''t send any HTTP
cookies in its requests. Rails integration tests didn''t catch this because
they always send the HTTP_COOKIE header, even if it''s empty.
This is a huge bug, as it can break keeping sessions on sites which don''t
set
2008 Apr 17
4
Do I need to use sessions if I don't store anything in them?
Hi,
I got very small app that has user part and admin part. The problem is
that after a while the sessions table has ~150mb. I don''t really need
to store any user data in the session for the user part. I only need
it for the admin part.
Can I simply turn session off in controllers from the user part? Are
there any drawbacks of turning the session off?
Regards
2006 Apr 04
1
sessions failing on debian apache2 fast_cgi
Hi All,
So I just pushed our rails app to our production server, but I''ve
encountered a number of problems.
Firstly the fast_cgi processes seem to be eating up a hell of a lot of
memory, at times max out our 1gig of RAM. I''ve switched back to cgi for
the moment, but independently of that sessions seem to be failing
intermitently.
The session will hold itself stable for a
2006 Jul 04
0
removing stale active record sessions
I have an application that is used by only a small number of persons.
This app stores its sessions in the database. When the user logs out,
the session is removed, but of course, there is always the possibility
that the user will forget to logout, and the session will go stale.
In other webapps, I have used a sweeper ruby script that I run as a
cron job to periodically clean these out. But I
2010 Nov 15
0
how to store package options over sessions?
I want to define some options for my package the user may change.
It would be convenient if the changes could be saved when terminating
an R session and recovered automatically on the next package load.
What is the standard way to implement this?
TIA
Mark
2006 Nov 14
4
Catching a list of variables with a Controller
Hi All,
I have been learning some ruby and some Camping at the same time by
implementing a little webapp to track expenses (one man''s blog...) that
includes the ability to tag entries with 1 or more tags.
I wanted to offer the possibility to narrow the view of expenses by adding
tags to a filter (this works) and I also wanted this filter to be reflected
in the URL. Like so:
normal URL:
2018 Nov 29
0
Tracking Listeners with Key and other parameters
Good morning,
On Tue, 2018-11-27 at 12:00 -0500, Alex Hackney wrote:
> I do have control over the headers. The webapp is built in php.
Ok.
> So the ideal path would be.
>
> 1) Client hits my web app for the m3u file.
>
> http://webapp.com/station-aac/listen.m3u
>
> 2) I create a session id and send that back with the icecast server path(s)
>
>
2017 Jan 09
2
Trouble removing files in chrooted sftp
Hi,
I have trouble setting up chrooted SFTP for our user.
I got the basic SFTP chroot working, user is chrooted to its home
directory, I've added /home/userb/etc directory with dummy passwd, group
and localtime files.
The problem is that instead of only accessing its own files, I need the
user to be able to remove another users files.
I have web application which runs as different user, the
2010 Nov 20
3
how to store package options over sessions?
Hi,
I posted this a week ago on r-help but did not get an answer. So I hope that someone here can help me:
I want to define some options for my package the user may change.
It would be convenient if the changes could be saved when terminating
an R session and recovered automatically on the next package load.
Is that possible and if yes, is the standard way to implement this?
Thanks,
Mark
2006 Aug 04
1
Store ActiveRecord objects in session
I want to create a object then store it in the session, then if the user
chooses to save it, its saved in the database.
I have a Configuration model of which I store instansobject of in the
session.
Now I also want to store the object in the database.
How can I make this possible?
In the Configuration model I have a lot of variables and methods, but
maybe its just to make the Configuration
2017 Jan 11
0
Trouble removing files in chrooted sftp
I just did a bit of testing on OpenBSD and there the above setup seems to
work and I can remove the files just fine over sftp.
So this thing should work but there's still something causing it to fail on
CentOS's side.
One difference between our CentOS and OpenBSD is that OpenBSD uses newer
openssh server. I looked through the release notes and didn't see any
changes related to
2005 Aug 25
1
newbie questions about hosting address
Dear Rails groups,
thank you for all the previous helps in this group, and me being a newbie is getting more comfortable with rails and now I finish most of the scaffold modification without much problem. My question is(I know it''s absolutely basic questions but I''m a real outsider :~( ) I have been developing in my own pc, now my office ''s other people will test on it,
2011 Apr 11
0
Suggestions for a secure rails setup regarding system users, groups and permissions.
Howdy. After much experimentation with Capistrano, my deploy.rb file
seems to be working without problems, but I would like to verify what
is recommended in regard to users, groups and permissions. I run
Rails with Apache, Passenger, ImageMagick, Thinking Sphinx, and of
course, deploy with Capistrano. Quite a bit of detail and text
follow, so thanks for bearing with me.
My system''s
2007 Dec 21
1
RPM-installed packages trying to install every run, causing service to fail
Hi guys,
I''m doing some hackish stuff with manually installing RPMs. Basically
I''m pulling them down to /tmp and installing them using provider => rpm,
then making the service check that the package is installed before it''ll
start. Here are the relevant sections of the pp file:
class tomcat inherits httpd {
$tomcat_connectors_pkg = $architecture ? {
2006 Apr 30
1
storing sessions in RAILS_ROOT/tmp
I''ve read that the newest versions of rails stores sessions in
rails_root/tmp. I''ve been running off the trunk for about 3 months, but
I still have all of my sessions stored in /tmp of the file system. What
do I need to do to modify it so that my sessions are stored in my
rails_root/tmp folder?
--
Posted via http://www.ruby-forum.com/.
2011 Apr 19
4
/etc/bashrc help!
Dear all,
i've appended the below to /etc/bashrc it works like a charm with ssh
connections though SFTP sessions fail since the below is being sent to
the intiator.
any way of limiting the below to none sftp sessions? or any other idea
for it to work?
# If id command returns zero, you?ve root access.
if [ $(id -u) -eq 0 ];
then # you are root, set red colour prompt
echo