Reply
Thread Tools
Posts: 15 | Thanked: 6 times | Joined on Nov 2009
#11
Awesome news. I'm looking forward to it like you wouldn't believe. I'm actually on vacation this week and was hoping to get some ruby-gtk hacking going on the phone, so I'm curious how long you think it might be Thanks!
 
Posts: 3 | Thanked: 0 times | Joined on Jan 2010 @ Vicenza - Venetia
#12
I am absolutely interested
 
Posts: 33 | Thanked: 44 times | Joined on Dec 2009
#13
Hi all.

I just finished setting up the repository for my Ruby-packages (I will try to upload them to the testing-devel repositories at a later time, when the packages are tested a bit more).

Create a new catalog on your phone and type in the following:
Name: kaspernj.org
Webaddress: http://maemorepo.kaspernj.org
Distribution: fremantle
Components: main

SSH to your phone, do a "apt-get update" and then "apt-cache search ruby".

To install Ruby with GTK and SQLite3:
apt-get install ruby ruby-gnome2-all ruby-sqlite3

Everything should now work as usual, when you are working with Ruby on your normal computer.

I would really appreciate, if you could give me some feedback. Bugs, extensions you want or whatever.

Happy hacking!
 

The Following 3 Users Say Thank You to kaspernj For This Useful Post:
Posts: 3 | Thanked: 0 times | Joined on Jan 2010 @ Vicenza - Venetia
#14
Ty!!!
I'll try it on weekend! Yesterday I compiled ruby-gnome2-all and it works well. But, what about ruby-hildon? It exists?
Has anyone tried this before?
http://site.realitybites.eu/download/ruby-hildon-src
 
Posts: 1,746 | Thanked: 2,100 times | Joined on Sep 2009
#15
Originally Posted by kaspernj View Post
Okay. I think I will compiled the whole thing myself and publish it. As I can see, not much of the current Ruby-packages are "optified".
They aren't, and desperately need to be.

Why the hell didnt they make the root partiton bigger anyway? This optifi thing is ********...
Physical limitation. The fast NAND chip the OS is stored on is only 256MB in size, and bigger ones didn't appear until well after they started designing the N900.

Kaspernj how did you get ruby-hildon to build (also, where did you source it from?) And if you could, include ruby-glade as it makes designing at least a plain GTK gui very, very easy.
 
Posts: 3 | Thanked: 0 times | Joined on Jan 2010 @ Vicenza - Venetia
#16
Originally Posted by wmarone View Post
Physical limitation. The fast NAND chip
Is this chip so fast (yes I've read /opt_problem)? But there's a real difference about common non-intensive applications?
I've ruby on rails installed so I moved and symlinked /usr/lib/ruby to /home/opt/ruby and it works well, not as server of course

About ruby-hildon there is a link (not tested by me) in my previous post.
 
Posts: 15 | Thanked: 6 times | Joined on Nov 2009
#17
I'm installing these packages as we speak! And yeah, i'll probably try to make ruby-hildon behave, if it's functional. Thanks much. I'd put my vote in for ruby-glade as well, but I'm thrilled to have this for free. You rule.
 
Posts: 1,746 | Thanked: 2,100 times | Joined on Sep 2009
#18
Originally Posted by ironoxid View Post
Is this chip so fast (yes I've read /opt_problem)? But there's a real difference about common non-intensive applications?
I've ruby on rails installed so I moved and symlinked /usr/lib/ruby to /home/opt/ruby and it works well, not as server of course
The chip is quite fast, as it is attached directly on top of the CPU and has a much faster interconnect. Applications that are part of the core OS and data stored on the root partition will be read significantly faster. The caveat to this is the chip is very low capacity.

By contrast, the 32GB eMMC gets about 14MB/s and my microSD card gets about 6MB/s. High capacity, but comparatively low speed.

Knewter: best of luck getting ruby-hildon to behave, I couldn't work out what the Makefile was trying to do. It looked like it belonged in some other suite or something.
 
Posts: 33 | Thanked: 44 times | Joined on Dec 2009
#19
wmarone, why not use GtkBuilder to design GUI? Isnt Glade deprecated? I dont think it is being developed any more anymore... I actually thought that Glade was already in my packages, but I will look into it after lunch today.

GtkBuilder works very well. I will post an example after lunch as well, so you can see how to get started.

I have NOT been able to compile ruby-hildon... Sadly. But I will also give that another try, when I get the time. I havent been able to compile Revolution either, which we need to get access to the contacts, the calendar and so on. It looks like the evolution-libs used by Maemo are just too old for Revolution.


Right now I am also working on packaging PHP and PHP-GTK for all the PHP-devs who would like to write some code for the phone. I have been able to compile PHP with all the libs except ODBC and IMAP until now.
 
Posts: 33 | Thanked: 44 times | Joined on Dec 2009
#20
Here is a GtkBuilder-example, which works with my build (GtkBuilder is almost like Glade).

class MyWindow
def initialize
@gui = Gtk::Builder.new
@gui.add_from_file("gui/win_main.ui")
@gui.connect_signals(){|handler|method(handler)}

@window = @gui.get_object("window")
@window.show
end

def on_window_destroy
Gtk::main_quit
end
end
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 13:07.