Internationalised Domain Names
I’ve been wanting a Chinese domain for a while. Not a .cn mind you, but a URL that was in Chinese – like http://大猪网.com or what have you.
I’ve looked into it on and off for a year or so, and finally decided to give it a go. I wanted to see [...]
Category: Chinese, Mac, Tinkering, Web Apps, Windows



Wow :P, you call that easy ?
Easy is when you drag your components, stick them into an layout system that doest kill the brain(like anchor based layouts).
Easy is when you create custom components from existing ones and when the gui builder does also code-gen work for you.
As easy as it seems to you (do not know where you come from, probably from java) it looks prehistoric these days.
Look at IntelliJ GUI builder, also look@ any .net gui builder(mono or dotnetfx-doesnt matter what target) or some of Borland’s builders.
Hell, look at eclipse based Adobe Flex IDE …
Those things are easy and focus your programmer’s work on whats important, because this is what matters, functionality.
This is easy compared to how it was a few years ago (perhaps even a year ago). And I don’t think any of the things you mentioned are free (let alone support ruby).
Some of them are free or have a free version limited in some functionality. Ex: :
- http://msdn.microsoft.com/vstudio/express/
- http://www.lazarus.freepascal.org/
- http://www.icsharpcode.net/OpenSource/SD/
- monodevelop
these are the “Cream” of the free tools :) and indeed none of them for ruby which brings you to the conclusion of what is ruby good for on this part …
Terrific. One question, could you add the source code for this? Your video is too blurry to see properly :-). Thanks!
Hi Andrew,
Most of the source code for that is generated, but for the parts I typed:
def on_window_destroy(widget)
GTK.main_quit
end
and
def on_runbutton_clicked(widget)
@glade['textentry'].text = “Test”
end
those methods themselves should get added by the program ruby-glade-create-template when you feed it the .glade file.
Also the ‘textentry’ bit is what we put in the Name field in Glade.
I hope that helps
[...] http://robrohan.com/2007/05/21/linux-gui-programming-with-ruby/ se puede encontrar un exelente manual de iniciación de programción con Ruby y [...]
Hey, thanks for the video rundown on this. I have been trying out both Swing via JRuby and GTK-ruby… so far, GTK looks more mature in terms of building a real application. JRuby / Swing could be cool in the future, but right now JRuby is intolerably slow when it is interpreted and jrubyc (in v1.0) can’t compile anything other than simplistic code. I have no real background in GUI programming and your video tutorial is just the thing I was looking for.
BTW, how did you do the screen capture with sound?
“BTW, how did you do the screen capture with sound?”
http://robrohan.com/2007/05/19/howto-screencast-in-ubuntu-7/
:-D
Thanks for this Rob. Really excellent video. :-)
[...] Linux GUI Programming with Ruby – a short video demonstrating Glade based Linux GUI with Ruby. [...]
Hey Rob,
Great vid. One thing to note for the latest version of Glade 3.4.5 (which looks a little different, and doesn’t use project files) is that you need to set the window Visible setting to be ‘Yes’. This is in the ‘Common’ tab on the right control panel. If you don’t do this when you execute your .rb file it looks like nothing is happening.
Cheers
Ben
I spotted something else :-P
Under this function GTK is case sensitive:
def on_window_destroy(widget)
GTK.main_quit
end
In the latest version of ruby-gnome2 it must be Gtk not GTK.
[...] Linux GUI Programming with Ruby – a short video demonstrating Glade based Linux GUI with Ruby. [...]