search for: ftool

Displaying 16 results from an estimated 16 matches for "ftool".

Did you mean: fool
2010 Oct 27
1
Does Ruby 1.9.2 include ftools?
If I run irb, and do this: require ''ftools'' The response is: LoadError: no such file to load -- ftools I see around that 1.9.1 did not include ftools but no mention of 1.9.2. Looking at the Ruby docs (http://www.ruby-doc.org/stdlib/), ftools is still there. Any ideas? Thanks, David -- You received this message because you a...
2004 Mar 07
1
win32-mmap problem
...not the installer) Windows 2000 I was just playing with win32-mmap. I tried running the test_server.rb and test_client.rb. I started the server, which seems to be fine, but when I run the client I get this: C:\eclipse\workspace\win32-mmap-0.1.0\test>ruby test_client.rb C:/ruby/lib/ruby/1.8/ftools.rb:23:in `initialize'': Permission denied - win32/mmap.so (Errno::EACCES) from C:/ruby/lib/ruby/1.8/ftools.rb:23:in `open'' from C:/ruby/lib/ruby/1.8/ftools.rb:23:in `syscopy'' from C:/ruby/lib/ruby/1.8/ftools.rb:43:in `copy'' from t...
2007 Jul 01
1
rspec for the svn-less (ruby version)
...instead. - it seems like everyone might not use the rspec_on_rails piece...what do other think? - there are some other checks I could put in here, suggestions are welcome. - general code suggestions are welcome as well. Mike B. Here is my ruby version: #!/usr/bin/ruby -w require ''ftools'' def usage puts puts "Usage: makespec.rb <path> [<dotted-version>]" puts puts "Version defaults to 1.0.5" puts puts "Example: " puts " makespec.rb /var/www/rails/railsapp 1.0.5" puts end if ARGV[0].nil? then usage...
2004 Feb 25
5
Wide strings and LPCTSTR types
All, I was experimenting with converting LPCTSTR strings to wide strings with something like this: // Converts a Ruby string to a LPWSTR LPCTSTR AllocWideLString(VALUE rbString){ char* str = STR2CSTR(rbString); int length = (strlen(str)+1) * sizeof(WCHAR); LPCTSTR lpStr = (LPCTSTR)malloc(length); MultiByteToWideChar( CP_ACP, 0, str, strlen(str)+1,
2010 Aug 28
1
ANNOUNCE: Facter 1.5.8
...2ca2 Fixed #3929 - Added user confine to AIX memory facts 8106bc3 Adding HP-UX support to Facter''s IP facts 83b3ea6 Fixed #3393 - Updates to Facter for MS Windows ffcae46 Fixed #3403 - Added fact to query vlans; added spec test d4b8401 Merged Jos Backus patch to remove requirement for ftools altogether 73dcbb9 Fixed #2355 read hang on /proc/xen/capabilties on RHEL 4.7 d109def Fix #1365 - load all facts via cli 6c87917 Fixed failing test introduced by previous commit c5b8d3b Fixes #3740 - split dmi output on regex 25bf5c2 Fix virtual unit test on non-linux by stubbing kernel 9a00e...
2007 Sep 19
1
Fwd: win32-service of win32utils
...'m writing to ask for your suggestions. BTW, do you think it''s right to use password in plain text? Your help is very appreciated. The following is a full script I was using. base = File.basename(Dir.pwd) if base == "examples" || base =~ /win32-service/ require "ftools" Dir.chdir("..") if base == "examples" Dir.mkdir("win32") unless File.exists?("win32") File.copy("service.so","win32") $LOAD_PATH.unshift Dir.pwd end require "win32/service" include Win32 s = Ser...
2013 Mar 21
3
Announce: Puppet Dashboard 1.2.23 Available
...e and Group parameters rake tasks should not create duplicate entries. Fixes #13867, updates commit 0108c040 to behave as intended. 792d74a Check that the reports import dir exists, is a directory, is readable. #18512 7bc9438 puts is STDOUT.puts 7ea8816 Change deprecated ''ftools'' to ''fileutils''. c244fa2 Daemonize in the Debian / Ubuntu server init. 2b0aad4 Tighten up code for rake api tasks, and move common get_node get_group and get_class methods into a shared helper file. 7753bc5 Comment out specific gem rack version in our v...
2007 Mar 22
0
Url searching ?
...ve many objects with a url field, of course containing standards urls... I''m trying to match them but i actually got problems with that. Here''s a little code of what i would like to achieve: require ''rubygems'' require ''ferret'' require ''ftools'' class TestAnalyzer def token_stream(field, str) ts = Ferret::Analysis::AsciiStandardTokenizer.new(str) ts = Ferret::Analysis::AsciiLowerCaseFilter.new(ts) end end system ''rm -rf /tmp/ferret_test'' if File.exists?(''/tmp/ferret_test'') File.m...
2005 Feb 03
0
Fix for win32-shortcut
...all, I''ve narrowed down one more problem for cygwin/mingw. For win32-shortcut, it appears that you need to add "-luuid" to $LIBS. Once Takaaki tried that, it worked. How does this look for the extconf.rb for win32-shortcut? # extconf.rb require "mkmf" require "ftools" if RUBY_PLATFORM =~ /cygwin|mingw/i CONFIG["CC"] = "g++" CONFIG["LDSHARED"] = "g++ -shared" $LIBS += '' -lole32 -luuid'' else # -Tp tells cl to compile as c++ CONFIG["COMPILE_C"].sub!(/-Tc/,''-Tp'...
2009 Sep 09
0
Getting started with Rake - how do I copy a directory of assets to RAILS_ROOT + "/public"
...ls or File. Where AM I in rake terms. No matter what I do it keeps saying it can''t find the file. Do I need to use File.join or is there a better rake way? Any resources out there on how to use rake for file oriented tasks like this? Should I use a generator instead? --- require ''ftools'' #file tools desc "Installs famfam icons and stylesheets in application" namespace :famfam do desc "famfam icons and stylesheets in application" task :install => :environment do puts "Copying famfam icons from ../assets/icons to " + RAILS_ROOT + &...
2007 Sep 21
0
win32-service of win32utils
...very appreciated. The > following is a full script I was using. > > > > > > > > > > > > base = File.basename(Dir.pwd) > > > > > > if base == "examples" || base =~ /win32-service/ > > > > > > require "ftools" > > > > > > Dir.chdir("..") if base == "examples" > > > > > > Dir.mkdir("win32") unless File.exists?("win32") > > > > > > File.copy("service.so","win32") > > > &g...
2007 Apr 03
3
[Repost] Problem with url searching..
...ve many objects with a url field, of course containing standards urls... I''m trying to match them but i actually got problems with that. Here''s a little code of what i would like to achieve: require ''rubygems'' require ''ferret'' require ''ftools'' class TestAnalyzer def token_stream(field, str) ts = Ferret::Analysis::AsciiStandardTokenizer.new(str) ts = Ferret::Analysis::AsciiLowerCaseFilter.new(ts) end end system ''rm -rf /tmp/ferret_test'' if File.exists?(''/tmp/ferret_test'') File.m...
2004 Mar 09
6
win32-mmap test suite
...ests. I reduced the test suite to just this bit of code. This works, although the final test (TypeError) does not pass - no exception in thrown. This is 1.8.1 on Win2k. Any ideas? Dan PS - I added the VERSION constant to mmap.c :) if File.basename(Dir.pwd) == "test" require "ftools" Dir.chdir ".." Dir.mkdir("win32") unless File.exists?("win32") File.copy("mmap.so","win32") $:.unshift Dir.pwd end require "test/unit" require "win32/mmap" include Win32 class TC_Mmap < Test::Unit::TestCase...
2006 Aug 17
3
file_column do download from URL
Is there a simple way of forcing file_column to download file from given (ex. in form) url instead of uploading it manualy? I know: http://blog.caboo.se/articles/2006/01/09/file_column-magick-and-versions require ''open-uri'' Attachment.find_first.filename = open(url) if not working as expected... what is interesting is that: >> @a =
2009 Apr 07
3
Speed bumps on the way to successfully running puppetmasterd on Mac OSX Leopard, try one and two
...re''s where I am with the first two: 1. I can''t seem to install either facter or puppet properly, this is with the most recent ruby, 1.9.1. Here''s where I left off with facter: sudo ruby ./install.rb Password: ./install.rb:38:in `require'': no such file to load -- ftools (LoadError) from ./install.rb:38:in `<main>'' and then for puppet, from the customizations i thought were right: $ PATH=$PATH:/usr/local/src/facter/bin:/usr/local/src/puppet/bin $ RUBYLIB=/usr/local/src/facter/lib:/usr/local/src/puppet/lib $ export PATH RUBYLIB and then just the co...
2009 Oct 27
14
ANNOUNCE: Puppet 0.25.1 released!
...raises exception when passed a seed * Bug #2605: Ruby 1.8.1 compatibility - #1963 fix uses method not in 1.8.1 * Bug #2606: Gems can''t handle binaries in the sbin directory * Bug #2607: 0.25 gem does not have facter as a dependency * Bug #2608: install.rb will not run on ruby 1.9.1 due to ftools being deprecated * Bug #2612: vim syntax highlighting of new regex language features * Bug #2613: Autorequire fails when a directory''s path has a trailing / * Bug #2615: YAML sometimes modifies the contents of string data * Bug #2616: Locking error in tagmail * Bug #2618: Spurious test fa...