Home
Sep 10
Friday
Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

directory

Mandriva 2010.1 Spring Samba Standalone Server With tdbsam Backend
Friday, 27 August 2010 13:16

Mandriva 2010.1 Spring Samba Standalone Server With tdbsam Backend

This tutorial explains the installation of a Samba fileserver on Mandriva 2010.1 Spring and how to configure it to share files over the SMB protocol as well as how to add users. Samba is configured as a standalone server, not as a domain controller. In the resulting setup, every user has his own home directory accessible via the SMB protocol and all users have a shared directory with read-/write access.

Read more: http://howtoforge.com/mandriva-2010.1-spring-samba-standalone-server-with-tdbsam-backend

 
Fedora 13 Samba Standalone Server With tdbsam Backend
Tuesday, 03 August 2010 12:19

Fedora 13 Samba Standalone Server With tdbsam Backend

This tutorial explains the installation of a Samba fileserver on Fedora 13 and how to configure it to share files over the SMB protocol as well as how to add users. Samba is configured as a standalone server, not as a domain controller. In the resulting setup, every user has his own home directory accessible via the SMB protocol and all users have a shared directory with read-/write access.

Read more: http://howtoforge.com/fedora-13-samba-standalone-server-with-tdbsam-backend

 
Ubuntu 10.04 Samba Standalone Server With tdbsam Backend
Friday, 16 July 2010 12:09

Ubuntu 10.04 Samba Standalone Server With tdbsam Backend

This tutorial explains the installation of a Samba fileserver on Ubuntu 10.04 and how to configure it to share files over the SMB protocol as well as how to add users. Samba is configured as a standalone server, not as a domain controller. In the resulting setup, every user has his own home directory accessible via the SMB protocol and all users have a shared directory with read-/write access.

Read more: http://howtoforge.com/ubuntu-10.04-samba-standalone-server-with-tdbsam-backend

 
Creating a directory with Pathname
Wednesday, 16 June 2010 05:53
To create a directory I would typically use File.mkdir however class Pathname can be a convenient alternative e.g.

require 'pathname'

pathname = Pathname.new '/home/james/learning/ruby/fun/today.txt'
#=> #

pathname.exist?
#=> false

pathname.basename
#=> #

#=> #

pathname.dirname.mkdir
#=> 0

# observed directory '/home/james/learning/ruby/fun' was just created

Notes:

1) There is no Pathname#mkdir_p meaning parent directories will not be created automatically.

2) If the directory to be created already exists it will create an error
e.g. Errno::EEXIST: File exists - /home/james/learning/ruby/fun

Resources:
- pathname: Ruby Standard Library Documentation [ensta.fr]
- Module: FileUtils [ruby-doc.org]

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/22zLf6bnb_M/11643

 
Introducing the Dir-to-XML gem
Saturday, 05 June 2010 13:32
Use the Dir-to-XML gem to save a file directory listing to a Dynarex file.

*installation*

sudo gem1.9.1 install dir-to-xml

Successfully installed dir-to-xml-0.1.0
1 gem installed
Installing ri documentation for dir-to-xml-0.1.0...
Updating class cache with 3178 classes...
Installing RDoc documentation for dir-to-xml-0.1.0...


require 'dir-to-xml'

DirToXML.new
#=> #

file created: dir.xml



directory | tag


fun.txt
file
.txt
2010-06-05 17:24:10 +0100
2010-06-05 17:24:10 +0100
2010-06-05 17:24:10 +0100



html
directory

2010-05-07 19:20:54 +0100
2010-05-07 19:20:54 +0100
2010-05-07 19:20:56 +0100



ruby
directory

2010-06-05 17:20:18 +0100
2010-06-05 17:20:18 +0100
2010-06-05 17:20:18 +0100



dir.xml

.xml
2010-06-05 18:19:03 +0100
2010-06-05 18:19:03 +0100
2010-06-05 18:19:03 +0100






Resources:
- Create a directory listing in XML format [dzone.com]
- jrobertson's dir-to-xml at master [github.com]

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/FC4XIehw2g0/11547

 


Taxonomy by Zaragoza Online
Home