Navigation Home / Tags / Ruby

ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 Next »
1
Date Submitted Thu. Apr. 10th, 2014 8:08 AM
Revision 1
Helper johansonkatherine
Tags API | create | File | from | HTML | in | pdf | REST | Ruby | Using
Comments 0 comments
This code sample shows how Ruby developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
1
Date Submitted Thu. Apr. 3rd, 2014 7:13 AM
Revision 1
Helper johansonkatherine
Tags new | Ruby | split | to | Using | Workbooks | Worksheet
Comments 0 comments
Cloud Developers can now use ruby language to split excel workbook into single worksheets and save all or specific worksheets as new workbooks, TIFFs or other images format by using Aspose.Cells for Cloud API. To split workbooks, you need to upload the input Excel files to Aspose for Cloud or any supported third party storage and then send a POST request to the Aspose for Cloud service.

The following REST example uses the RestClient library to send HTTP requests and handle HTTP responses so you need to install RestClient to use these examples. You can use the URI to split a workbook from Aspose for Cloud or any supported third party storage.

Use following optional parameters with the above URI. All or specific parameters can be used according to your requirement. If no parameter is specified, then all worksheets are split to the specified format.

• storage – Used to set the storage name if you are using third party storage.
• folder – Used to set the name and path of the folder where the input file has been uploaded.
• from – Used to set the start page number if you are splitting specific pages.
• to – Used to set the end page number if you are splitting specific pages.

After building the URI:

1. Set the App SID and App Key and sign the URI.
See section 1 of the code and the Sign URI method for more details.
2. Send a POST request to the Aspose for Cloud service.
See section 2 of the code for more details.
1
Date Submitted Mon. Jun. 9th, 2008 4:00 AM
Revision 1
Helper jamesmcm
Tags converter | Ruby
Comments 0 comments
A simple algorithm to convert decimal numbers to binary; pointless since most languages have an inbuilt function but was used for learning about algorithm design.
1
Date Submitted Mon. Jun. 9th, 2008 3:56 AM
Revision 1
Helper jamesmcm
Tags decryption | Ruby
Comments 0 comments
The decrypter for the simple encrypter I posted earlier - Takes the encrypted text from a text file - "encrypt.txt" which the encrypter automatically writes to.
1
Date Submitted Mon. Jun. 9th, 2008 3:54 AM
Revision 1
Helper jamesmcm
Tags Encryption | Ruby
Comments 0 comments
A quick implementation of an encrypter which can't be cracked by frequency analysis.
5
Date Submitted Thu. Feb. 8th, 2007 1:09 PM
Revision 1
Helper jeremec
Tags "ruby on rails" | fixtures | rails | Ruby
Comments 0 comments
I'm in the process of writing test fixtures for our rails site. A lot of my tests require authentication, so I've had to port our permissions system into a fixture. Rather than type out all of the information for the fixture, I decided to create a nested loop that will take care of this for me.

There's probably a rake task for this, but I wasn't able to find it, so I came up with my own solution. You'll have to do a little cleanup when it's done, however some slight mods to this loop could even eliminate that.
5
Date Submitted Thu. Nov. 30th, 2006 11:40 PM
Revision 1
Beginner ivy7878
Tags address | addresses | country | IP | Ruby
Comments 1 comments
IP2Location is a Ruby library that enables the user to find the country, region, city, coordinates, zip code, ISP and domain name that any IP address or hostname originates from. It has been optimized for speed and memory utilization. Developers can use the API to query all IP2Location™ binary databases for applications written in C or supporting static/dynamic library.
7
Date Submitted Thu. Nov. 2nd, 2006 5:08 AM
Revision 1
Scripter SCoon
Tags Algorithm | Genetic | optimization | Random | Ruby
Comments 0 comments
This snippet illustrates using Genetic Algorithm for the hardware optimization.
8
Date Submitted Thu. Nov. 2nd, 2006 3:51 AM
Revision 1
Scripter SCoon
Tags Algorithm | Genetic | Random | Ruby
Comments 1 comments
Genetic Algorithm implementation.

See also "Weighted random selection" for RandomItemSelector class source.
7
Date Submitted Thu. Nov. 2nd, 2006 1:49 AM
Revision 1
Scripter SCoon
Tags List | Random | Ruby
Comments 1 comments
Weighted random selection from the list.

Don't forget to call itemsChanged after updating list content.
« Previous 1 2 Next »