hoodwink.d enhanced


Okay, Which Browser Will Run This Code and Can You Get It Going? #

by why in inspect

said on 22 Feb 2007 at 11:11

Is it kazehakase ?

said on 22 Feb 2007 at 15:56

Yes! Very good, beppu.

Now for the tough part. Can you weather the lack of documentation and figure out how to install it?

said on 22 Feb 2007 at 20:17

It’s easy on gentoo. `emerge kazehakase` :)

said on 23 Feb 2007 at 00:40

Archlinux: just install from AUR

PKGBUILD with building-instructions.

said on 23 Feb 2007 at 16:49

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…

said on 23 Feb 2007 at 21:01

Yey manveru, I love packagebuilds! Make willysilly put it in to community :S

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):

  1. Switch the UI to Expert level.
  2. Right-click this link and select Install this extension or whatever it says for Ruby scripts.
  3. Visit your preferences and go to the hotkeys section.
  4. Find the ViewAsHpricot action at the bottom of the list.
  5. Assign to Ctrl-Shift-H or something. Ctrl-= maybe.
  6. Visit any old page and hit the hot key.

So, that’s not bad at all.

said on 24 Feb 2007 at 07:39

how to copy this code,image?

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.

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.

said on 27 Feb 2007 at 06:39

Hank: go to expert mode

said on 27 Feb 2007 at 10:12

Hmm…all I get is a smarmy segfault. kazehakase

said on 27 Feb 2007 at 10:36

nevermind, my mistake

said on 27 Feb 2007 at 12:58

rcorsaro: I’m in expert mode. It’s not there. I’m angry.


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.

said on 27 Feb 2007 at 13:57
Here’s what I did:

  sudo make uninstall
  make clean
  ./configure --with-ruby
  sudo make install

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.

said on 27 Feb 2007 at 15:06
I gem install gettext, recompiled, and now I get this on startup:

(kazehakase:12230): Kazehakase-WARNING **: /usr/local/lib/kazehakase/ext/ruby/libkzext.so: undefined symbol: crypt

(kazehakase:12230): Gtk-WARNING **: RubyDialog: missing action

(kazehakase:12230): Gtk-WARNING **: ReloadRuby: missing action

(kazehakase:12230): Gtk-WARNING **: InstallAsRubyExtension: missing action

Something is terribly wrong. This would be so much easier if you were on IRC , _why. :P

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-'
make: *** [all-recursive] Error 1

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.

said on 27 Feb 2007 at 15:52

Still doesn’t work. I’m very sad.

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)

said on 03 Mar 2007 at 06:22

I’m in Ubuntu. Maybe I’ll try 0.4.2.

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.

said on 04 Mar 2007 at 02:43

Why i couldn’t

said on 04 Mar 2007 at 02:48

and i still couldn’t

11 Jul 2010 at 20:46

* do fancy stuff in your comment.