similar to: Fil from filsystem -> db

Displaying 20 results from an estimated 2000 matches similar to: "Fil from filsystem -> db"

2006 Jan 28
6
Check if user is in right group
What is the best way of checking this? I have 3 tables: groups users group_members class GroupMember < ActiveRecord::Base belongs_to :group belongs_to :user validates_uniqueness_of :user_id, :scope => "group_id" Then I want a method here that checks if a given user is a member of a given group. What is the right way of doing that? def
2006 Feb 21
6
Select articles from group with id ''1'' and id ''2''
I have to tables: "articles" and "groups". Between I have article_groups as a jointable. Now I want to select every article who is a member of group with id ''1'' and id ''2''. Whats best way to get that? Extract from schemas: CREATE TABLE articles ( id int auto_increment, ingress text NOT NULL, story_text longtext, constraint fk_items_users
2006 Sep 05
2
Mongrel and umask for uploaded files
So any files that are uploaded through my form are getting the following mode: -rw------- I need them to have: -rw-r--r-- I''ve tried setting the umask in a script file called set_umask.rb as follows: File.umask(022) and then starting mongrel using: mongrel_rails start -m config/mime.types -S set_umask.rb but it doesn''t seem to change the mode that the files are created
2006 Apr 08
5
rails.el on Ubuntu
Anybody who have a working .emacs (++) for Ubuntu (or Debian) with the newest emacs-rails (v.0.3). I have especially trouble with getting HTML Mode Snippets to work. - Henrik
2006 Apr 08
76
MIT vs GPL vs LGPL for open source project
I intend to release a project I wrote with Rails. What is the right licensing scheme for a web application (content managing system) which could grow with plugins and add-ons ? Personally, I would prefer the GPL but does that mean any add-on to the CMS (like task management) will have to be GPL ? If some people contribute to the code could it still be double-licenced so that the people who
2005 Oct 15
1
Partials and controllers
Newbie question: From a _form.rhtml file I have: <%= render(:partial => ''item'', :collection => @items) %> In _item.rhtml I have: <% @tullt = h(item.body) %> <%= @itemdb = Group.find(:all, :conditions => "id = ''#{@tullt}''").map {|u| [u.name] } %> <%= @tullt % I think it would be better to
2005 Nov 17
8
Components and layouts
Is there anyway for a component to use the layouts availble to rest of the app, but still use the templates under its own directory? Setting the layout with a "layouts/admin" say, just produces "can not find admin.rhtml...". Is there anyway around this? If not I guess I could just put the views under app/views, but really wanted to keep things seperate. Thanks! -Nick
2006 Jun 08
1
Permissions on uploaded files, TinyFile
Hi, im getting a little trouble with this, im using TinyFile as the example to upload files http://wiki.rubyonrails.com/rails/pages/TinyFile/versions/20 All goes well but the files uploaded are saved with permissions 600 (linux) and in the case of images arent showed on the browser(but uploaded and stored in the server without problems) i have to manually ftp to the uploaded files folder and
2006 Sep 15
1
quotes
Hello! I''m new on this list (and actually pretty new to redcloth also). This e-mail is about the wery fine feature of converting quotes. I''m norwegian, and we have our own qoutes: "?" and "?". I therefore hacked this feature, so it is now in lib/redcloth.rb, around line 404, so I now have: [ /([^\s\[{(>#{PUNCT_Q}][#{PUNCT_Q}]*)"/,
2006 Mar 29
7
Uploading files and writing them to server?
Where should I look for information on how to use Rails and Ruby to accept the upload of a file and then to save that file to the file system of my server? I''m reading the "Uploading a file" section of Agile Web Dev with Rails, but it''s geared toward saving the file in the database. Any advice? Thanks, Jeff -- Posted via http://www.ruby-forum.com/.
2006 Jan 30
3
Howto change @article.article.headline to @article.headline ?
I have to actions: def index @articles = Article.find(:all, :conditions => "un_published != ''1''", :order => "created_on desc") end and def group id = params[:id] @articles = ArticleGroup.find(:all, :include => [:group, :article], :conditions => ["articles.un_published !=
2004 Jul 16
3
Email eller vedhæftet fil blokeret
Email eller vedhæftet fil afsendt fra din adresse (eller med din adresse som afsender) er blevet afvist fra Allerød Kommune. Spam og virus bliver typisk sendt under dække af andre afsendere og den blokerede email behøver derfor ikke oprinde direkte fra dig. (Husk dog altid at have et opdateret antivirusprogram på din computer.) Du kan evt. scanne din computer med det gratis' værktøj
2009 Jul 10
4
change a image from physical to fil based
i try to change one of my images from lvm to file with dd if=/dev/vps/centos of=/root/mj.img the fiel whas created byt will not ok i bigin boot but failed i remember the system can''t find the lvm groups i not remember anymore _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2009 Mar 13
4
Save the elements of an atomic vector to a text fil
Hii, I will save the elements of the vector median<-with(x, tapply(V3, grup, median)). The output of this vector is: 25 50 75 100 125 150 175 200 225 250 275 300 325 350 375 400 425 450 475 500 17.8 17.8 17.5 17.8 17.7 17.6 17.7 17.6 17.8 17.7 17.6 17.7 17.8 17.7 17.8 17.8 17.8 17.8 17.7 17.7 Can anybody help me how to do it. I will save it to a text file...
2008 Dec 04
0
ERROR: ctfmerge: Cannot open output file isp for r/w: No such fil
OK, I am trying to dtrace isp(4) module in freebsd 7. each obj file is converted using: ctfconvert -L VERSION isp_freebsd.o and using "ctfdump isp_freebsd.o" I can see CTF info embedded in the .o file but in the linked kernel module, I found much less CTF info inside it. I guess I should use "ctfmerge" to combine the CTF info from each obj file into the final kernel module,
2006 Mar 21
0
MuraveyWeb CMS status
Hi! I''m author of MuraveyWeb, first open source Ruby on Rails CMS on the Earth :), which some of you may know. Last year I had a lot of Rails work and was very busy with all kinds of commercial projects, so I apologize to all who had no tech support or new releases from me. That''s entirely my fault, but I hope you''ll understand me. I was creating MuraveyWeb to
2003 Jan 23
3
Locating the MACHINE.SID fil
Additional Info... I am beginning to think that a file called 'secrets.tdb' might be what I am looking for. Inside that file is something mentioning SID. Of course, it also mentions the name of the PDC. If that is the file I am supposed to copy over. Then it is done. However, I still need a little more input for setting up a Samba BDC. With a Samba BDC, should I leave the
2018 Apr 23
0
Reconstructing files from shards
From some old May 2017 email. I asked the following: "From the docs, I see you can identify the shards by the GFID # getfattr -d -m. -e hex/path_to_file/ # ls /bricks/*/.shard -lh | grep /GFID Is there a gluster tool/script that will recreate the file? or can you just sort them sort them properly and then simply cat/copy+ them back together? cat shardGFID.1 .. shardGFID.X > thefile
2002 Nov 29
3
Version 2.2.6 and above are not able to store big fil es over 2GB
I'm hitting the 2G limit taring from 2.2.2 to ntfs NT4. could this be my problem as well. -----Original Message----- From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org]On Behalf Of Klaus Ethgen Sent: 29 November 2002 4:10 PM To: samba@lists.samba.org Subject: [Samba] Version 2.2.6 and above are not able to store big files over 2GB Hello, when I store a file biger than
2009 May 04
3
Problem with --fil
Hi, I am using below command. rsync --verbose --log-file-format='%i %f %l %o %b' --log-file='/tmp/myfile' src/ dest/ Though it is good that all the sync information contents will be redirected to /tmp/myfile, it would be useful if rsync could print at least below final statistics on stdout. 2009/05/05 00:17:45 [26050] Number of files: 18 2009/05/05 00:17:45 [26050] Number of