2nd Release of Visual Ruby

I’m trying to install vr on Ubuntu 11.04, and after running: {{ sudo gem
install visualruby }} I get the following error:

ERROR: While executing gem … (Errno::ENOENT)
No such file or directory -
/var/lib/gems/1.9.1/gems/visualruby-0.1.0/[“.”]/vr

thanks
http://www.packersmoversdirectory.net/

Thank you!! I worked very hard on this project, and I’m really happy
that you are using it. Let me know if you need help or features.

I’ve been really busy, so I can only do tiny fixes right now, but I’m
planning to fix the main problem with the program:

I know that when the program starts, it must scan the entire “home”
directory looking for visualruby projects. This can be slow especially
on windows machines. I will need to add something to focus the search
into a smaller area.

I will post any updates here.

Thanks,
Eric

Eric C. wrote in post #1054542:

Hi y’all:

I’ve just added support for active_record to visualruby, so you can add
active_record objects to listviews and treeviews. I’ve also updated the
documentation today.

So, its time for the second release!

go to:

http://visualruby.net (click on download)

If any of you have time, please try to install it, and let me know how
it goes. I’m getting a fair number of downloads, but I suspect that
people are encountering install issues. I’d really like to know what’s
going on.

Thanks for all of your great work.

Yours,
Eric

Hi Eric,

I have found the website visualruby.net yesterday and installed it
immediatly on an Ubuntu 12.10 system. I am new to GTK / Linux GUI
development ( coming from Windows ) and my first impression is: AWSOME
!!

I will start to try rebuilding parts of my app in visualruby and come
back to you and the forum as soon as I hit some problems :wink:

Best regards

Klaus

Just installed VR on a fresh Ubuntu 12.04.1 VM

If I type “vr” at the command line, from any directory, I am given a
list of example projects in a window. I can select and open any. So
far so good. And it looks great :slight_smile: , a great tool to use – and then I
get stuck :frowning:

On that window, unless an example is eelected, the “Open” button has no
effect.

Trying to invoke "vr " does no good. If is that of a directory that exists, I get the same result as with
no parameter. If the name given doesn’t match a directory, I get a No
such file or directory message (traceback: open / entries / initialize /
new “<top (required)>” / load / main /eval / main).

If I open one of the examples:

  • Pressing “Open Project” results in the same “Select Visual Ruby
    Project Root” window opening;
  • The File menu shows “New skeliton Window script”, “New skeliton Child
    Window script”, “New Blank Document”, “Save All”, “Save As…” and
    “Close All” (and Quit). The Tools menu speaks about creating a Gemspec
    file, an account, a launcher … But nowhere is there an indication of
    how to create just a project.

I know I am missing sumpthin’ but what, exactly ?

Hi:

I know that this isn’t obvious, but the way to create a project is to
click “Open Project” then “Select Folder.” Really a project is just a
root folder. If you want a new, blank project, select “Create Folder”
and just create a new folder.

This is shown in the videos on the website:

I think its in the “Quick Start” tutorial.

Let me know how it goes,
Eric C

Hi Klaus:

Thanks for your kind words. If you have any problems, or questions, let
me know. I’ll try my best to contribute to your project.

What is your app? Is it programmed in Ruby now? What are your goals?

I started in windows too. Visual Ruby is very similar to Visual Basic.

Best wishes,
Eric C

Eric - any news yet on how you plan to license this? I asked a while
back but you hadn’t decided.

Thanks,

Kevin

I’d like to figure-out a way to make money from my work, but its looking
difficult. Right now I’m reserving the right to charge, but don’t worry
about using it for any free/personal stuff. If you want to use it for
commercial purposes, I’m asking for very little money to use it. Either
way, there’s nothing stopping anyone from using it.

As it changes into a community project, it may become totally free.
Honestly, I don’t know what to do about this issue now.

Hi, first of all, thank you for having made this project, it seems
promising =)

I would like to get some info, as I’m not very experienced with gui
programming. I first learned how to use Shoes, and even experienced
seeing limitations (lack of making table, menus, and quite ugly in
appearance) out of it.

Some questions:

  1. What relation got VisualRuby with Ruby-GNOME2? Can we use his
    libraries?
  2. Does VisualRuby is compatible with the last stable version of Glade?
    Because it is said that Ruby isn’t supported here:
    http://www.gtk.org/language-bindings.php
  3. Is there any VisualRuby good software in order to peek inside, to
    discover VisualRuby mechanisms?

Thanks you, depending on my second question’s answer, I may learn how to
use it for my personnals projects =) !

Eric C. wrote in post #1090223:

I’d like to figure-out a way to make money from my work, but its looking
difficult. Right now I’m reserving the right to charge, but don’t worry
about using it for any free/personal stuff. If you want to use it for
commercial purposes, I’m asking for very little money to use it. Either
way, there’s nothing stopping anyone from using it.

As it changes into a community project, it may become totally free.
Honestly, I don’t know what to do about this issue now.

Could I make a suggestion then please? Have a look at RubyMotion on
mac/ios (http://www.rubymotion.com/) as I think that is your closest
business idea.

They do not have a system for lone developers or people just learning. I
realise it’s iOS but if you look at it just as an app platform, that is
the kind of thing that could make you money. Who knows, you might even
get interested in doing the Android equivalent.

I would say price it as soon as it’s ready and have a go at selling it,
but allow it to be free for Open Source projects. That way it stands a
good chance of getting some traction (the kind of traction you need for
adoption).

Somebody like me, who is an very, very (i.e. unemployed) poor developer
can work on his project then pay for the license when he is ready to go
pro himself. So you get lots of people who would not normally use it
interested from day one. You get people in the community using it, and
when it hits a critical point you could be onto a really good thing.

I think it definitely has potential to free a lot of Ruby programmers
and I also think it could make you a bit of money - but getting it in
use is your first hurdle. That’s why I say free for open source - that
gets you your user/tester base.

Hi,

am using active record in visual ruby, When i edit a field in a table
its getting edited but its not getting saved in my database. I want to
edit the data in the row inplace and want to save it as i type. Which
signal should i use to achieve it.

For example, in the activerecord1 example, In choose person when i click
any field it is getting opened in a separate form, in that form i have
included i have placed a save button and included the below code.

def button1_clicked
get_glade_all()
save
end

this is working fine and the edited data is getting saved in the
database after clicking the button.

But i dont want this i want to save the data as i type directly in the
field. so i tried as below…

class ChoosePerson < VR::ListView

include GladeGUI

def initialize()
super(:name => String, :phone => String) # Person class
col_editable(true)
end

def show()
load_glade(FILE) #loads file, glade/MyClass.glade into @builder
@builder[“window1”].resize 450, 220
@builder[“scrolledwindow1”].add(self)
Person.all.each do |p|
row = add_row() #add_row(:person => p)
row.load_object§

end
show_window()

end

def button1_clicked
row = vr_row(selection.selected)
row[:name].save
end

end

but i dono how to save it while am typing in the field. Please help me
out of this.

Hi:

Perhaps you should make a new topic for this question. This thread is
getting long.

You can try the button_press_event and button_release_event in the
Gtk::Widget class:

def self__button_press_event(*args)
button1__clicked
end

This will fire every time a key is pressed. You may also be able to
limit the number of saves by checking to see if a cell in a certain
column is being edited, and only save if it is. You may also be able to
just capture the keypress of a single column or cell.

Hope this helps,
Eric C

Hi Mattias:

Thanks. vr simply runs glade on the command line, just as you do. So
perhaps if you run vr as an administrator, it will run glade as
adminstrator too? Everything I use just runs as a normal user. I don’t
know why you’d want to set-up your computer to run as administrator.

E

Hi,
Great work on Visual Ruby. I am very new to Ruby but I thought Visual
Ruby would be a good place to start. I have installed it on Windows 7
and it worked fine except that I get the same error as described by Jim
Flanagan (2012-04-25), e.i. an error when I try to edit a glade file. I
don’t know if this was resolved but I found that I could run glade-3 as
an Administrator from the command line but not as a normal user. I don’t
think this was mentioned by Jim F. Is there a simple solution to this?
Or is it possible that I have done something wrong during the
installation that causes this effect?
Best Regards,
Mattias

Thank you for your response, Eric.
This is the weirdest thing. VR does not even run when I try to run it as
Administrator. When I installed Glade it did ask for administrator
privileges. I assume this is why I don’t get access to Glade as a normal
user. I think I will try to reinstall everything as Administrator and
see what happens.
Cheers,
Mattias

Hi Eric,

first of all: thank you very much for “Visual Ruby”, great work!

As an absolute Ruby-beginner I’m very interested in learning how to
create gui with Visual Ruby, but I cannot find enough examples to get
behind the logic of it all.
I tried to find out, how to write a simple key-press thing, but since I
couln’t find any examples, I failed …
Where can I find more examples, easy examples?

Greetings
Thomas

It actually works now, when starting the program using Start Command
Prompt with Ruby as Administrator. I just can’t figure out why I can’t
run it as a normal user.

Eric: on your last comment, I have not set up my computer to run as
administrator. I only found that I could start Glade as administrator
but I do want to run the program as a normal user.

// Mattias

Hello Thomas,

Visual Ruby has a small subset of extended custom controls, that aren’t
part of the normal Gtk2/Ruby-Gnome2 Toolkit. But, since Visual Ruby
builds
on Gtk2/Ruby-Gnome2, you can look at the examples for Gtk2/Ruby-Gnome2,
and
they will work with Visual Ruby as well. There are more things being
added
to the Visual Ruby core, as well as a new version of the Visual Ruby IDE
being developed by me right now, that you can check out at
Bitbucket and
Bitbucket these will eventually be
released
as gems, as I get closer to getting things stable.

Currently, I’m working on some issues with Threading on Windows, that
prove
to work in test cases that I run of them, but fails to work in the IDE
itself when I run the same code. But I suggest checking out the code,
as
I’m always working on improving it.

hth,

Mario

On Fri, May 17, 2013 at 9:53 AM, Thomas Riefle <
[email protected]> wrote:

efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
Best Open Source Mac Front-Ends 2023


ruby-gnome2-devel-en mailing list
[email protected]
ruby-gnome2-devel-en List Signup and Options


Mario S.
Fleet Captain
CO - Geo 99
CO - USS T’hy’la
XO - Diplomatic Corps - Second Life
http://www.iftcommand.com/chapters/thyla/