I had high hopes for kazehakase, but when I found out that you can’t access the DOM through Ruby, those hopes were shattered. These days I’m enjoying writing ECMAScript in Conkeror, but I’ll always wonder if I could be doing the same thing in Ruby.
From what I’ve heard the problem is that Gecko is pretty opaque and makes it difficult to access its internals via anything other than C++ or ECMAScript. I wonder if you might be able to build something with KHTML that let you access the important bits of a browser from Ruby…
FlashHater
said on
23 Feb 2007 at 21:01
Yey manveru, I love packagebuilds! Make willysilly put it in to community :S
why
said on
24 Feb 2007 at 00:18
Yeah, kazehakase does not give you a whole lot and you have to read the source to discern its ways. But that’s kind of fun and it has some cool ideas.
Like, for example, try this (in kazehakase >= 0.4.4):
Switch the UI to Expert level.
Right-click this link and select Install this extension or whatever it says for Ruby scripts.
Visit your preferences and go to the hotkeys section.
Find the ViewAsHpricot action at the bottom of the list.
Assign to Ctrl-Shift-H or something. Ctrl-= maybe.
Visit any old page and hit the hot key.
So, that’s not bad at all.
andi
said on
24 Feb 2007 at 07:39
how to copy this code,image?
Vagabond
said on
24 Feb 2007 at 17:38
heh, I installed kazehakase the other day in my quest for a browser that would run on FreeBSD/sparc64. It was the only one that I could get working. Didn’t even realize it was ruby scriptable until afterwards. I’ll have to play with it some more next week.
Hank
said on
27 Feb 2007 at 02:48
In the debian repositories:
sudo apt-get install kazehakaze
Don’t do it if you have ruby in /usr/local. You would then have 2 rubies, and everything would be sad. I personally installed it from the latest source with no problems.
As for the link, _why, I can’t find the install extension option yet. :( I’ll keep trying.
rcorsaro
said on
27 Feb 2007 at 06:39
Hank: go to expert mode
SergeantCircles
said on
27 Feb 2007 at 10:12
Hmm…all I get is a smarmy segfault. kazehakase 0.4.4.1
SergeantCircles
said on
27 Feb 2007 at 10:36
nevermind, my mistake
Hank
said on
27 Feb 2007 at 12:58
rcorsaro: I’m in expert mode. It’s not there. I’m angry.
:I
why
said on
27 Feb 2007 at 13:21
I don’t think the deb will do. I think you have to compile from source—with-ruby.
Hank
said on
27 Feb 2007 at 13:57
Here’s what I did:
sudo make uninstall
make clean
./configure --with-ruby
make
sudo make install
why
said on
27 Feb 2007 at 14:31
Oh, lovely.
Check your config.log and make sure it actually picked up Ruby. I had to specify the path to libs and includes to get it going.
If that doesn’t work, we’ll take a dip into your ~/.kasehakaze and see what’s going on.
Hank
said on
27 Feb 2007 at 15:06
I gem install gettext, recompiled, and now I get this on startup:
Something is terribly wrong. This would be so much easier if you were on IRC , _why. :P
Hank
said on
27 Feb 2007 at 15:11
Ah-HA! Here’s a make in ext
In file included from kz-rb-ext.c:23:
kz-rb-ext.h:19:27: error: kz-enum-types.h: No such file or directory
make[1]: *** [kz-rb-ext.lo] Error 1
make[1]: Leaving directory `/home/hank/tmp/kazehakase-0.4.4.1/ext/ruby'
make: *** [all-recursive] Error 1
Hank
said on
27 Feb 2007 at 15:19
Well, apparently it gets generated when you compile src. It was getting compiled successfully the whole time. It’s just those messages at the begginning. I’m going to try 0.4.4.
Hank
said on
27 Feb 2007 at 15:52
Still doesn’t work. I’m very sad.
gpogo
said on
02 Mar 2007 at 01:40
Seems to work for me.
Hank: what are you running? Etch has kazehakase 0.4.2 which lets this extension work(assuming you have hpricot installed)
Hank
said on
03 Mar 2007 at 06:22
I’m in Ubuntu. Maybe I’ll try 0.4.2.
Hank
said on
03 Mar 2007 at 06:56
Hey! It installed and started with no ruby errors like before, but it still wont use the ruby script :( I’ll work on it more later.
beppu
Is it kazehakase ?
why
Yes! Very good, beppu.
Now for the tough part. Can you weather the lack of documentation and figure out how to install it?
Justin
It’s easy on gentoo. `emerge kazehakase` :)
manveru
Archlinux: just install from AUR
PKGBUILD with building-instructions.
technomancy
I had high hopes for kazehakase, but when I found out that you can’t access the DOM through Ruby, those hopes were shattered. These days I’m enjoying writing ECMAScript in Conkeror, but I’ll always wonder if I could be doing the same thing in Ruby.
From what I’ve heard the problem is that Gecko is pretty opaque and makes it difficult to access its internals via anything other than C++ or ECMAScript. I wonder if you might be able to build something with KHTML that let you access the important bits of a browser from Ruby…
FlashHater
Yey manveru, I love packagebuilds! Make willysilly put it in to community :S
why
Yeah, kazehakase does not give you a whole lot and you have to read the source to discern its ways. But that’s kind of fun and it has some cool ideas.
Like, for example, try this (in kazehakase >= 0.4.4):
So, that’s not bad at all.
andi
how to copy this code,image?
Vagabond
heh, I installed kazehakase the other day in my quest for a browser that would run on FreeBSD/sparc64. It was the only one that I could get working. Didn’t even realize it was ruby scriptable until afterwards. I’ll have to play with it some more next week.
Hank
In the debian repositories:
Don’t do it if you have ruby in
/usr/local. You would then have 2 rubies, and everything would be sad. I personally installed it from the latest source with no problems.As for the link, _why, I can’t find the install extension option yet. :( I’ll keep trying.
rcorsaro
Hank: go to expert mode
SergeantCircles
Hmm…all I get is a smarmy segfault. kazehakase 0.4.4.1
SergeantCircles
nevermind, my mistake
Hank
rcorsaro: I’m in expert mode. It’s not there. I’m angry.
why
I don’t think the deb will do. I think you have to compile from source—with-ruby.
Hank
why
Oh, lovely.
Check your config.log and make sure it actually picked up Ruby. I had to specify the path to libs and includes to get it going.
If that doesn’t work, we’ll take a dip into your ~/.kasehakaze and see what’s going on.
Hank
Something is terribly wrong. This would be so much easier if you were on IRC , _why. :P
Hank
Ah-HA! Here’s a make in
extHank
Well, apparently it gets generated when you compile
src. It was getting compiled successfully the whole time. It’s just those messages at the begginning. I’m going to try 0.4.4.Hank
Still doesn’t work. I’m very sad.
gpogo
Seems to work for me.
Hank: what are you running? Etch has kazehakase 0.4.2 which lets this extension work(assuming you have hpricot installed)
Hank
I’m in Ubuntu. Maybe I’ll try 0.4.2.
Hank
Hey! It installed and started with no ruby errors like before, but it still wont use the ruby script :( I’ll work on it more later.
Uta
Why i couldn’t
Uta
and i still couldn’t