|
|
|
Wednesday, 29 September 2010 07:00 |
 | About Tidy Up!
You can search for duplicate files and packages; by the owner application, content, type, creator, extension, time modified, time created, name, label, visibility and date/age. You can also search by the tag, duration and bit installments of MP3 and AAC sound files and EXIF metadata, search the contents of the iPhoto, Aperture, iTunes, iPod databases and Mail mailboxes, and synchronize deletions with iPhoto, Mail and iTunes.
- Tidy Up! allows you to search for duplicate folders; by name, date modified, date created, label visibility, empty folders, their contents and more.
- Many more features. |
Read more: |
|
|
Wednesday, 18 August 2010 07:00 |
 | About Tidy Up!
You can search for duplicate files and packages; by the owner application, content, type, creator, extension, time modified, time created, name, label, visibility and date/age. You can also search by the tag, duration and bit installments of MP3 and AAC sound files and EXIF metadata, search the contents of the iPhoto, Aperture, iTunes, iPod databases and Mail mailboxes, and synchronize deletions with iPhoto, Mail and iTunes.
- Tidy Up! allows you to search for duplicate folders; by name, date modified, date created, label visibility, empty folders, their contents and more.
- Many more features. |
Read more: |
|
Friday, 09 July 2010 07:00 |
 | About Tidy Up!
You can search for duplicate files and packages; by the owner application, content, type, creator, extension, time modified, time created, name, label, visibility and date/age. You can also search by the tag, duration and bit installments of MP3 and AAC sound files and EXIF metadata, search the contents of the iPhoto, Aperture, iTunes, iPod databases and Mail mailboxes, and synchronize deletions with iPhoto, Mail and iTunes.
- Tidy Up! allows you to search for duplicate folders; by name, date modified, date created, label visibility, empty folders, their contents and more.
- Many more features. |
Read more: |
|
|
Wednesday, 16 June 2010 08: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: |
|
Tuesday, 15 June 2010 21:58 |
Polyrex-createobject is used internally by Polyrex and polyrex-objects to handle the creation of records.
Records can be created through direct method calls, method chaining or blocks e.g.
require 'polyrex-createobject'
require 'rexml/document'
include REXML
obj = PolyrexCreateObject.new('a/b[name]/c[name,count]/d[name,age]')
doc = Document.new('123')
obj.record = doc.root
obj.b({name: 'fun'}).c({name: 'fun2'}).d({name: 'fun3'})
puts doc.to_s
#=> 123fun[!name]/summary>fun2[!name] [!count]name>fun3[!name] [!age]
obj = PolyrexCreateObject.new('a/b[name]/c[name,count]/d[name,age]')
doc = Document.new('123')
obj.record = doc.root
obj.b(name: 'fun') do |create|
create.c(name: 'fun5') do |create|
create.d name: 'fun7', age: 11
end
end
puts doc.to_s
#=> 123fun[!name]/summary>fun5[!name] [!count]name>fun711[!name] [!age]
 Read more: |
|
|
|
|
|
|
Page 2 of 2 |