Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-14-2009, 05:36 AM   #16
-Thomas-
Addict
-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.
 
-Thomas-'s Avatar
 
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
Quote:
Originally Posted by hansel View Post
@Thomas: One more thing check: symlinks will not be created on vfat destinations when installing with ipkg on the Iliad. This might cause some libraries to be broken. (I had to repair this for Lua). You can check this by installing manually via ssh: ipkg gives an error message...
Creating a symlink on a FAT partition doesn't work of course, as it's an ext-only feature. But where exactly do you need this? /usr/ is on an ext2 partition, thus creating /usr/local as a symlink should be possible in all cases.

Quote:
PS: I decided to let my lua.ipk install evrything in /mnt/free/_local/, with the intention to run be run from there (without symlinks in /usr/local). The install size is less than 1 MB, and my /mnt/free has 100MB free...
You're right, 1MB shouldn't harm anyone. Will have a look at Lua as soon as I have some time to. Is it as easy as Ruby, or even easier? (Now we're back on topic again )
-Thomas- is offline   Reply With Quote
Old 01-14-2009, 06:47 AM   #17
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Quote:
Originally Posted by -Thomas- View Post
Creating a symlink on a FAT partition doesn't work of course, as it's an ext-only feature. But where exactly do you need this? /usr/ is on an ext2 partition, thus creating /usr/local as a symlink should be possible in all cases.
I installed in /mnt/free, which is vfat. There are links for libraries like strudel.so -> strudel.so.1.2.3
Quote:
Originally Posted by -Thomas- View Post
Will have a look at Lua as soon as I have some time to. Is it as easy as Ruby, or even easier? (Now we're back on topic again )
It's nice, small and elegant. It's simple but very flexible, so it takes time to understand all features. I think it has less libraries than ruby or perl or python. The nice thing its that it is very eay to interface to existing C code. And you can program all modern cannon cameras in Lua Learn once, use everywhere. see: http://chdk.wikia.com/wiki/LUA

Last edited by hansel; 01-14-2009 at 06:49 AM.
hansel is offline   Reply With Quote
Advert
Old 02-16-2009, 07:13 AM   #18
-Thomas-
Addict
-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.
 
-Thomas-'s Avatar
 
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
Lightbulb

I've compiled libsqlite3-ruby1.8 for the iLiad. This allows you to talk to a sqlite3 database with Ruby.
  • Please install sqlite3 from this post
  • Next install the attached libruby1.8 ipkg. This is a temporary package and contains no data so far, but libsqlite3-ruby1.8 depends on it. In the future I will split up the Ruby package into the binary and the libraries, and this a little preparation to do so.
  • Now you may install the libsqlite3-ruby1.8 ipkg.
The library uses ~250k of space and will be installed wherever you have installed Ruby. Some test code from the interactive Ruby shell:
Code:
root@ereader:/var/tmp$ irb
irb(main):001:0> require "sqlite3"
=> true
irb(main):002:0> db = SQLite3::Database.new("/tmp/test.db")
=> #<SQLite3::Database:0x402e2bac @handle=#<SWIG::TYPE_p_sqlite3:0x402daf9c>, @translator=nil, @statement_factory=SQLite3::Statement, @type_translation=false, @results_as_hash=false, @driver=#<SQLite3::Driver::Native::Driver:0x402e2b0c @busy_handler={}, @authorizer={}, @callback_data={}, @trace={}>, @transaction_active=false, @closed=false>
irb(main):003:0> db.execute("SELECT * FROM test") do |row|
irb(main):004:1* puts row[1]
irb(main):005:1> end
abc
=> nil
Have fun!
Attached Files
File Type: ipk libruby1.8-1.8.5+iliad.r01.ipk (900 Bytes, 398 views)
File Type: ipk libsqlite3-ruby1.8-1.2.4+iliad.r01.ipk (47.3 KB, 409 views)
-Thomas- is offline   Reply With Quote
Reply

Tags
iliad, ruby

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Book (Kindle) - Robin and Ruby Susan Crealock Deals and Resources (No Self-Promotion or Affiliate Links) 0 04-02-2010 06:46 AM
Quick n' dirty Ruby Program: convert text files (Kindle - others?) monojohnny Reading and Management 5 01-14-2009 08:32 AM
iLiad dancing Ruby on Iliad dzw! iRex Developer's Corner 8 08-29-2008 06:37 PM
Walk, Charles Edmonds: The Paternoster Ruby (Illustrated). v1. 4 Aug 07 HarryT BBeB/LRF Books 0 08-04-2007 06:03 AM
Free Ruby programming e-book TadW Deals and Resources (No Self-Promotion or Affiliate Links) 2 01-13-2007 01:50 AM


All times are GMT -4. The time now is 08:00 PM.


MobileRead.com is a privately owned, operated and funded community.