Re: Procs!

2009-07-27 Thread Cecil Coupe
Yet another reminder why Lisp scoping rules and my feeble lexical brain don't mesh. I have no opinion as to why or if it's a good thing (Tm) but it'll burn us old school non Lispers. On Mon, 2009-07-27 at 05:15 -0400, MenTaLguY wrote: > I wasn't terribly clear. Let me rephrase -- if you do this:

Re: global hotkey

2009-07-17 Thread Cecil Coupe
I don't want to ignite a UI war but I don't want app's changing those keys (volume, CD eject and various Linux key chords to get a console or restart X) It doesn't seem like a Shoes priority to me. If you can find or make a cross platform hook into all the OS external event streams and rubyize it a

Re: Is my function not working, or is it shoes?

2009-07-11 Thread Cecil Coupe
Hi, This may not help, but what I've done is something like this to enter a string @el = edit_line @outMB, :width => 40 do @outMB = @el.text # call your function here end Attach the block to the edit_line and don't worry about keypress (unless you really need key by key actio

Re: issues with ask_save_file and ask_open_file on Leopard

2009-06-30 Thread Cecil Coupe
I vaguely remember a huh? like you report. I don't have OS X anymore so I can't test. On Linux I use a construct like > button "Save As..." do > fn = ask_save_file > if fn and fn.length > 0 > #puts "Setting new file #{fn}" >

Re: Packaging Issues

2009-05-26 Thread Cecil Coupe
On Mon, 2009-05-25 at 17:09 -0500, _why wrote: > > So, yeah, good work folks. I try to scan all the threads here, but > it is even harder during the summer. > > _why Technically, it's not summer yet in the upper hemisphere. Not that the weather or climate cares what we think.

Re: Packaging Issues

2009-05-23 Thread Cecil Coupe
t; designated web service. This is instead of requiring the user to > >> upload > >> gigabytes of data and it eliminates (or reduces) the need for a > >> transcoding > >> farm. I think it would be benificial for lots of small sites that > >> requir

Re: Packaging Issues

2009-05-22 Thread Cecil Coupe
nloading files > - seem cleaner. I will have a look and see how it goes. It might lead > me to automating other aspects of the build process as well once I see > how the packaging works. > > Thanks! > Noah > > On May 22, 2009, at 8:44 PM, Cecil Coupe wrote: > >

Re: Packaging Issues

2009-05-22 Thread Cecil Coupe
r one could read the docs for binject. Where that pack.rb is on your system and which copy of shoes you are using if you have multiples... Just something to look at. --Cecil On Fri, 2009-05-22 at 21:00 -0600, Cecil Coupe wrote: > It might be easier to debug and fix the problem than imp

Re: Packaging Issues

2009-05-22 Thread Cecil Coupe
It might be easier to debug and fix the problem than implement a workaround, IMHO. It looks like most of the action starts in lib/shoes/pack.rb - I don't have an OS X box anymore so I can't be very helpful. Might be an easy fix if you can find all the parts. On Fri, 2009-05-22 at 21:24 -0500, Ro

Re: Library Dependencies

2009-03-15 Thread Cecil Coupe
If your Linux has a package manager that installs the dependencies compiled against the other libraries and kernel on your system, I'd use it. I wouldn't depend on the tar inside of a .deb to be good for you -- you'll never know where the problems are if by chance it should almost work. It's a lo

Re: Sqlite3 on ubuntu

2009-03-09 Thread Cecil Coupe
On Tue, 2009-03-10 at 12:23 +0800, niedh wrote: > thanks to Mark Vander Voord > I had already install the libsqlite3-dev and sqlite3-ruby > when i use sqlite3 without shoes ,it works fine > > my ruby is not the "apt-get" version, I compiled from the source,is this > the problem? Shoes ruby and ge

Monospace Font

2009-01-03 Thread Cecil Coupe
Hi folks, I'm writing an app that loads and edits and saves some some text lines (CSV) to a file. I put up a Shoes stack, with a flow for each line in the file with a checkbox in front. Works fine. Until I use 'code' instead of 'para'. The text isn't displayed for 'code', yet no errors in the

Ne

2008-11-24 Thread Cecil Coupe
I hate when figure it out right after I ask for help. vist() creates a new Shoes object doesn't it? Sorry to bend the ear of the mailing list.

I'm confused. Object variables aren't?

2008-11-24 Thread Cecil Coupe
Hi all, I started writing a Wizard like configuration GUI (see attachment) It switches back and fro between screens using visit just fine. Oddly the, @ vars disappear. [EMAIL PROTECTED] in my script]. Is that a bug or my misunderstanding? Or the shifting definition of self. I can use $globals t

Re: error on make; compiling in ubuntu hardy

2008-10-19 Thread Cecil Coupe
try 'rake VIDEO=1' (works for me) You'll need to get rake and gems installed in Ubuntu if you haven't already. More importantly, you should install vlc and 'libvlc0-dev' The Makefile has always been pretty iffy on Linux. Setting up a directory and cloning (pull) from _why's git will get you the Ra

Re: Video/Audio in Shoes

2008-10-10 Thread Cecil Coupe
This isn't an answer, just something to try. Add a stack to your a height and width. Last I played with VLC and shoes(unbuntu), it won't play if it doesn't have screen real estate. I should file a bug but there were other problems of mine. --Cecil On Fri, 2008-10-10 at 02:05 -0400, Mike Richar

Re: hinting for copy and paste?

2008-09-28 Thread Cecil Coupe
On Sun, 2008-09-28 at 23:20 -0500, _why wrote: > On Sun, Sep 28, 2008 at 08:10:44PM -0700, Jeff Hodges wrote: > > I know Shoes writes directly to a canvas which makes this difficult, but is > > there any way to hint that a textblock should be copy and pastable? Or, > > perhaps more accurately, a

Re: List messages arriving out of order

2008-09-25 Thread Cecil Coupe
On Fri, 2008-09-26 at 00:21 -0400, Seth Thomas Rasmussen wrote: > I dunno about you guys, but I've had a handful or so of messages in > various threads arriving out of order for me lately. The first message > in the recent thread about presenting tabular data just hit me > recently after I received

Re: problems with utf on os x ?

2008-09-21 Thread Cecil Coupe
> I don't know how Shoes > is supposed to handle Unicode, but doesn't Ruby not handle Unicode > well or something? > Unicode and Ruby is complicated. Ruby may (or may not) mishandle it. The choice of font's in Shoes and your choice of default font and your system's fallback mechanism for handling

Re: quirks in argv handling

2008-09-10 Thread Cecil Coupe
. Shoe's has it's own switches (-h, --gem x y z ... ) that it needs to parse first. Being a cross platform GUI app, I'm wondering how the argument parsing should work in Shoes, in Windows. Actually, I'm wondering if it has to work at all. It is a GUI, no? --Cecil > > mar

Re: quirks in argv handling

2008-09-09 Thread Cecil Coupe
Shoes doesn't use your installed Ruby. It's its own thing, not an addition to your Ruby. A different, local, 'shoes' variety of Ruby with different rules. On Tue, 2008-09-09 at 22:53 -0700, Martin DeMello wrote: > $ cat testargv.rb > p ARGV > > $ shoes testargv.rb > ["testargv.rb"] > > $ ruby te

Re: Shoes.setup problems with gems depending on hpricot (and/or perhaps other issues)

2008-08-24 Thread Cecil Coupe
FWIW, Here's how I deal with gems. One, I don't "install" shoes on my Linux box, I build from git and run it from the command line of a terminal app. That might not match what you want. There's a switch -g (or --gem ) on the shoes command line that allows gem commands to be passed and Shoes

Re: The Way of Shoes on Linux (vs OS X)

2008-07-31 Thread Cecil Coupe
> It should be possible to add shoes to your {gnome, kde, fwm, %s} desktop > tools, but I don't know how in general. > > > > mentally adjusting here... In Gnome, right-click on the desktop menu bar -->Add To Panel. You can right-click an existing icon look and look at the properties to see how it

Re: weird closure behaviour

2008-07-25 Thread Cecil Coupe
martin, From my experiments, there appears to be one (or two in Ubuntu) click handlers. The x,y are for the top Shoes window and not relative to the flow/stack that the handler is attached to. In that case two handlers in Linux is probably a bug. For your purpose (and mine), one handler sucks b

Re: Gem setup required?

2008-07-24 Thread Cecil Coupe
I'm not saying I know anything or understand Shoes/Gems interactions but wouldn't the 'other' scripts just need 'require rubygems' and then 'require foo'? Works for me but I install gems in Shoes from the command line 'shoes -g install x'. If you're running shoes from a not 'installed' directo

Re: Missing Magic Triggers

2008-07-24 Thread Cecil Coupe
> They aren't documented because I'm not happy with draw(). It can be > severely misused. When I was writing the Cascade example, I kept > running into awful recursion problems. Yep, I've seen those segfaults myself. I understand how 'draw' is a word that means something different to other fo

Re: Missing Magic Triggers

2008-07-24 Thread Cecil Coupe
nted. > > > As for the second question, I haven't verified it myself, but would > #repaint_all meet your needs? That would be nice, but from inside a widget's method I get a 'no method' error for repaint_all, but I know where to look now for my clues. > >

Missing Magic Triggers

2008-07-24 Thread Cecil Coupe
Does anybody know what those two args to Widget.draw() are? Or the magic method name for triggering a repaint on a stack/flow? In a Widget? --Cecil

Looking for a Widget

2008-07-19 Thread Cecil Coupe
Instead of inventing my own, perhaps you have one to share that I could modify or inspect. I'm writing a Shoes app that kind of mimics iTunes or Rhythmbox music players. Not that anyone wants another music player. It's just an exercise to see how far I can push Shoes with my limited skills. I'm l

r838 is missing curl.h

2008-07-18 Thread Cecil Coupe
I pulled 838 from git and the rake/compile failed shoes/native/gtk.c:12:23: error: curl/curl.h: No such file or directory I copied /usr/include/curl/curl.h over to to shoes/native and it compiles now. --Cecil

Re: Doc dreams

2008-07-16 Thread Cecil Coupe
What would be really nice is a back button/link in the manual pages/menus. Sometimes you follow a link to read more about a topic and the only way to get back is a top down click and scroll fest to get back to where you used to be before that last click, assuming you can remember how you got there.

Re: Doc dreams

2008-07-15 Thread Cecil Coupe
Never mind. I found the master list in the Shoes manual (duh), right their on the left side base. I like where this is leading. On Tue, 2008-07-15 at 02:18 -0600, Cecil Coupe wrote: > Awesome. I think. > > I'll need a hint on how to invoke the new magic. The magic word or

Re: Writing a Window manager

2008-07-15 Thread Cecil Coupe
If you know Ruby, you can read Python (or vice versa), enough to get the gist of what's going on. Hash is a python dictionary. Array is a python list, 'self' has to be explicitly added to class/method definitions because there's no @instance or @@class syntax. Python is quite readable though. Tra

Re: Doc dreams

2008-07-15 Thread Cecil Coupe
Awesome. I think. I'll need a hint on how to invoke the new magic. The magic word or key chord is? From the "git pull" I see that you've modified the files I would expect you'd have to. Just a gentle clue stick, _why. OK? --Cecil > > Completely with you on this. I've just checked in som

Re: Doc dreams

2008-07-14 Thread Cecil Coupe
current ri or html output (i.e. Fire up a irb console inline to try > out the code as you're reading about it). > > -Josh > > > On Jul 14, 2008, at 9:09 PM, Cecil Coupe wrote: > > > Bad form to reply to my own message. Sorry. > > > > A shoes command

Re: Doc dreams

2008-07-14 Thread Cecil Coupe
Shoes approachability for the target audience. --Cecil On Mon, 2008-07-14 at 21:34 -0600, Cecil Coupe wrote: > A master inheritance chart with links would be very nice! It doesn't > have to be searchable, that's a non-issue for that view of the API, > imho. I don't

Re: Doc dreams

2008-07-14 Thread Cecil Coupe
A master inheritance chart with links would be very nice! It doesn't have to be searchable, that's a non-issue for that view of the API, imho. I don't know that my skills are up to the task so I won't volunteer to write it. I have been experimenting with a tiny script that copies the ruby.c into

Doc dreams

2008-07-13 Thread Cecil Coupe
With all due respect for _why and the "Manual" and NKS, I'm a bit "show me the reference manual." Who inherits from who? What methods and vars are exposed in each class? What overrides who? I'm just wired that way, I need that structure to understand. So I spent a few hours with rdoc on shoes/ruby

Scrollbars in Manual

2008-07-11 Thread Cecil Coupe
Using the Shoes manual, clicking in the scrollbar area doesn't move it up/down. Pageup/down keys have know effect. Dragging with the mouse does work, as does the scroll wheel. (Ubuntu 8.04)

Odd bug with ask_file_open.

2008-07-11 Thread Cecil Coupe
Hi, There's an odd bug with ask_open_file in the attached script. When the "Select WXR " button is pressed the resulting dialog never completes drawing and consumes all the cpu. Nothing on the console or commandline to help debug this. samples/simple-dialog.rb DOES work as expected however. I'm

Re: Unintuitive check's

2008-07-07 Thread Cecil Coupe
all the API's you can imagine and all the control you desire. Even then, I don't think 'self' changes based on the event. On Mon, 2008-07-07 at 23:11 -0600, Cecil Coupe wrote: > Because 'self' is Shoes. You run within Shoes. Think how it work work > otherwise.

Re: Unintuitive check's

2008-07-07 Thread Cecil Coupe
Because 'self' is Shoes. You run within Shoes. Think how it work work otherwise. On Tue, 2008-07-08 at 14:16 +1000, Bluebie, Jenna wrote: > Why can't I do self.checked? inside a check's click block doodad? I > find it confusing that I have to assign the check to a varaible and > then use the

Re: require 'cgi' == trouble

2008-07-07 Thread Cecil Coupe
When dealing with Shoes one needs to remember it's a self contained Ruby runtime, completely unrelated to whatever version of Ruby you have on your box or which gems you have installed. Shoes is it own environment. It's not full Ruby, it's only partial Ruby. It evals your script within the selecti

Re: Rather smashing dialog

2008-07-05 Thread Cecil Coupe
I hit send too soon. In OS X, there's another environment variable, DYN_LOAD_LIBRARY (?) or something like that On Sat, 2008-07-05 at 01:24 -0600, Cecil Coupe wrote: > Wouldn't you have to put the native shared library (.so, .dylib, > what-ev) in a shoes accessible libload pa

Re: Rather smashing dialog

2008-07-05 Thread Cecil Coupe
Wouldn't you have to put the native shared library (.so, .dylib, what-ev) in a shoes accessible libload path? Its the back door to madness IMO, totally non portable, but sometimes setting the environment LD_LIBRARY_PATH properly won't screw up everything else on your system as well. Once bitten (So

Trial Balloon for Preferences Code

2008-07-04 Thread Cecil Coupe
I decided to do a little Ruby coding on preferences/config files for Shoes scripts. It's far from perfect but its a reasonable start. It works for me on Ubuntu Linux 8.04. The Windows and OS X parts aren't coded (your help is solicited - can't be that hard if you know where the files should go) Th

User Preferences are not document settings

2008-07-04 Thread Cecil Coupe
Hi, With all due respect for chasers of coolness (we need you idealists) Applications preferences are different from serializing the users's meta data with the document's meta-data together. Not the same. It's completely application specific but that's up to you where the line is drawn. Or shou

Re: DRAFT 1: bug day - Shoes Code-a-thons on July 11th and July 25th

2008-06-26 Thread Cecil Coupe
> -- > FOR IMMEDIATE RELEASE > > Shoes 24-hour Worldwide Code-a-thons on July 11th and July 25th > [snip] That looks pretty good to me. You got most, if not all of the goals translated into PR-speak that developers will read. Not easy to do. Well done. --Cecil

Re: Background threads

2008-05-27 Thread Cecil Coupe
Sam, I recommend a tiny rethink about your problem. I see two issues. Populating the sqlite db is one and display it is another. Why use one process to do both? Ruby thread goodness (or lack of) is a bit of unwarranted FUD. If you look hard enough, my name is on some of that old wxWindows code.I

Re: ! shoes 0.r608 tarball

2008-05-22 Thread Cecil Coupe
I kind of liked the effect on my peculiar app when the r605 widgets hovered over a scrolling area after resizing ;^) Yes, I saw it's was a bug and even happier you fixed before I had to describe it. Kudo's! I'm happy to report that r608 works even better for me in Ubuntu 8.04. r605 in XP has some

Re: Mem Leaks. Pegged Cpu

2008-05-17 Thread Cecil Coupe
On Fri, 2008-05-16 at 17:21 -0500, _why wrote: > Okay, discovered this was causing by too much repositioning of the > controls. A fix is up at github. Pleasingly enough, this also > fixed the open/save dialogs. > > _why There might be more to do on the layout code. Resizing the top level window

Re: Mem Leaks. Pegged Cpu

2008-05-16 Thread Cecil Coupe
On Fri, 2008-05-16 at 17:21 -0500, _why wrote: > Okay, discovered this was causing by too much repositioning of the > controls. A fix is up at github. Pleasingly enough, this also > fixed the open/save dialogs. > > _why It works for me. Thank you.

Mem Leaks. Pegged Cpu

2008-05-14 Thread Cecil Coupe
I don't know if this is one problem or two different problems. Most of the sample scripts take 100% of one core's cycles. Roughly 65% for shoes and 35% for Xorg. (Unbuntu 8.04, Gnome 2.2). From startup to hours at idle later, it uses everything. samples/expert-irb.rb doesn't so that's a clue. Ther

ask_file_open bug in Ubuntu or Gnome or

2008-05-14 Thread Cecil Coupe
Hi all, I'm running Ubuntu 8.04, AMD_64 and ask_open_file() fails for all the shoes rev's I've tried (many versions, from Curious to r594). Seems to work in XP though. I can reproduce the problem with samples/simple-dialog.rb. Just click the button to open a file and I get a gnome dialog (em