The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Oocli Fantasies

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Red Handed

Posts: 1158
Nickname: redhanded
Registered: Dec, 2004

Red Handed is a Ruby-focused group blog.
Oocli Fantasies Posted: Aug 18, 2005 7:37 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Red Handed.
Original Post: Oocli Fantasies
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Red Handed
Latest Posts From RedHanded

Advertisement

I love a few of these concepts Reyn Vlietstra has dropped on the Ruby-Talk list for an object-oriented shell. Gleaned from discussion on the R:O:S mailing list:

  • methods added to filetypes
    • >> somesong.mp3.play
    • >> some.jpg.rotate(90).view
    • >> somefile.extension.defaultopen("/usr/bin/somebinary")
    • >> somefile.extension [which would open it using somebinary]
  • custom global objects
    • >> db.somedatabase.sometable.find_all [active_record could be used here]
    • >> apache.config.port = 81 [Not sure how this would work ? read/write the .conf file ?]
    • >> apache.restart
    • >> samba.config.global.security = user
  • chaining of commands
    • [grep something] | invoke a graphing application which will show the number of ocurrances by filename with a bar chart
    • gimp.applyfilter(gimp.filters.blur) | email.send("blured image","someone@somewhere.com")
  • opengl for the command line:
    • The cli then becomes more of an ide, a combo box could be popped up for command suggestions instead of the usual list of commands which saves space.
    • images could be displayed on the cli iteself
    • a nice graph of the chained commands could be displayed with each command’s projected inputs and outputs for the current fsm [Could be generated by doxygen]

A very sturdy list. I think you’d run into the same problem that Yubnub’s found with pipes. Especially in the case of a gimp-to-email pipe, how does the email know how to translate the incoming string? I imagine metadata will need to accompany strings which are piped. (Ripped from ruby-talk:152684.)

Read: Oocli Fantasies

Topic: Some OSCON 2005 Ruby Talk Links Previous Topic   Next Topic Topic: Web 2.0 and counting

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use