s Ruby - Include script test

♠ ♣ ♥ ♦

USPS Priority Mail® or USPS First-Class Mail® (under 1lb) for ALL US orders. Get you order in 2-3 days. All US shipping the same flat rate of $4.85 regardless of the size of the order. International orders responsible for any customs or added fees at destination. (more info...)

SUPPORT THIS SITE by visiting an advertiser or purchasing picks, books or my Midnight at the Jazz Cafe CD.

Ruby Testing

This is a testing page for the Curt Sheller Publication main web site.

Ruby Testing (ruby-script.shtml) | Updated: 01-Jul-2008 - 23:55

Ruby Include Script click to show or hide or section

BBEdit lets you include scripts written in Perl, Python, Ruby, or any other Unix scripting language.

Including Unix Scripts - Ruby

BBEdit lets you include scripts written in Perl, Python, Ruby, or any other Unix scripting language. The complete path name of the file being processed is passed to the script as its first argument, and any variables in the include statement are passed as additional arguments. (For Perl, all these can be retrieved by your script via @ARGV.)

Any text sent to STDOUT by the script will be taken as the value of the bbinclude operation and inserted into the HTML file. If an error occurs while running the script, the STDERR output, if any, will be inserted into the file along with the STDOUT, and a single line indicating the error will be added to the error browser.

See the dev folder for more examples.

Hello World Ruby Script

bbinclude ":scripts:ruby:HelloWorld.rb"

Hello, Ruby!!!!

Getting img file dimensions

1
2
3
4
5
6
7
8
9
10
#!/usr/bin/ruby
# get the image file and its size and return a <img scr""> tag

#get the image file in 
imageFile = ARGV[2]

# TODO - Figure out reading the file for the dimensions

puts "<img class=\"book-image\" src=\"" + imageFile + "\">"

Online Orders & shipping Information

Secure Online Ordering and Fast Shipping

We have been getting our products to our customers using online ordering since 2000. In all of that time (and across the hundreds of orders processed) our customers have not had one instance of credit card difficulties due to online ordering.

Our online orders are fully encrypted and our e-commerce site is directly provided by ccNow, a secure online retailer. The security technology is state of the art and your credit card information is transmitted only once.

All products are in stock and will normally be shipped out to you on the next business day.

PriorityMail_env.jpg All orders purchased here at CurtSheller.com, JazzGuitarResources.com, UkuleleResources.com UkuleleChords.net and UkuleleForGuitarPlayers.com are processed using a secure shopping cart system and shipped within 48 hours USPS. Allow 7 to 10 business days for delivery. It is not our intention to profit from shipping and handling charges. The rates are an average cost, and intended to cover expenses only. Please do not ask how long it will takes to get your order. All US orders are shipped USPS Priority Mail® or USPS First-Class Mail® (under 1lb) and delivery dates are not predictable. I do not check on an order not received until three weeks have elapsed since it was shipped. Three weeks is not how long it takes to get your order. Rather, it is how long it takes to convince us that something is wrong. Some orders are returned by the USPS and we have to wait to see if that has happened before any action is taken. Thanks, Curt Sheller Publications.

Goods and services provided by Curt Sheller Publications (PA, United States) and sold by ccNow.com.

Other items purchased through Amazon.com and SheetMusicPlus.com are shipped by Amazon.com and SheetMusicPlus.com.

BOOKS AUTHORED BY CURT SHELLER ARE NOT AVAILABLE ON AMAZON.COM

Close Move
Main Site Navigation Menu

The main site menu is divided into a few sections such as the online store, instrument specific information, online lessons, miscellaneous goodies, contact info and site information.

With over 300 pages of content the various sections and pages within each can be visited using the tabbed interface.

Tabbed section navigation

Each major section on the Curt Sheller Publication web site has additional pages of content that can be visited using the tabs at the top of the page directly above the page title.

Page Sub Sections

Most page sections can be expanded and collapsed. Allowing you to focus on specific content.

All page sections have go to top of page , go to contents and help buttons for quick page navigation.


Popup Views

Indicated as a gray border around an image. Additional information and larger views of samples pages, PDF files and book covers can be viewed in popup windows.

PDF file images and book covers can be viewed larger in a popup view by clickin on the actual image.