Re: [Orgmode] Re: Introducing gnugol - an org-mode-output web search client

2011-01-08 Thread Dave Taht
On 01/06/2011 09:06 AM, Allen S. Rout wrote:
 Dave Taht d...@teklibre.org writes:
 
 So over the holiday I wrote a command line web search client with an
 emacs interface and called it gnugol. It uses the google json and bing
 json APIs to search the web, and outputs the results in plain text, in
 whatever format you're working in, notably, org, so you can navigate the
 results in the mind-set you're in.
 
 [...]
 
 On unrelated surfing (reddit), I ran into this:
 
 http://surfraw.alioth.debian.org/

I credit surfraw with inspiration in my documentation (which is less
funny than theirs!). I've been using that - or something like it - for
years. I should get in touch with them.

My problem was more that

1) I've never got emacs's shells to display even simple applications
like elinks properly

2)  I remember questions as keywords and find the effort of bookmarking
the results too much

3) Going from the Emacs org (or markdown) UI to webspace is really
disconcerting for me. My fingers do emacs, my eyeballs like green on
white, and I'd actually like the results spoken aloud whenever I get
the latest emacspeak working...

I love getting the results back in an outline form - tab to expand - I'd
like to add something like org-keys...

4) And gnugol is FAST.

Innumerable other advantages detailed on the web site and doc.

 
 Do you think it's possible that your two powers combined, would make you
 INVINCIBLE?

No. :/ It would be helpful, however, to come up with marginally better
search of any sort in the general case. This week I prototyped an
interface to stackoverflow (and got a little snarky about the issue in a
blog entry: http://nex-6.taht.net/posts/Screen_Space/ ). Sean Conner and
Brian Clapper been improving the C code considerably.
Not so much work on the elisp. :(

Do do a git pull and build regularly and have a look at the git log for
details.

The positive feedback, help,   interesting ideas, so far, have been
wonderful.

 I don't know how much they dink with the return stream; it may be not
 at all, which would be inauspicious for a combination.  But if they're

They don't. They do support 100+ engines however, and can be very useful.

 doing any sort of output capture/filter, then adding an org-mode flavor
 to the list might be really straightforward.

I see centralized search devolving to the point to where we do need end
user filtering - not just anti-spam techniques but also bayesnian
filtering, and reputation servers, and white/blacklists to improve the
quality. There's been a lot of discussion of the recent decline in
google's results on various forums of late.

I've been finding the bing support more useful than I thought.
 
 
 
 - Allen S. Rout
 
 
 
 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Introducing gnugol - an org-mode-output web search client

2011-01-08 Thread Dave Taht
On 01/06/2011 10:19 AM, brian powell wrote:
 I'll see you're surfraw; and, I'll raise you a goosh:
 
 http://goosh.org

Cute!

 ---maybe gnugol could work with goosh somehow?

Not unless it went green on white!

 ---works from an Emacs Shell/eshell too:
 
 ** Example/possibilities:
 apt-get install surfraw
 ...
 [[eshell:*eshell*:(rename-buffer vvv)]]
 [[eshell:*eshell*:(rename-buffer ttt)]]
 [[eshell:vvv:date]]
 [[eshell:ttt:sr wikipedia goosh]]

I see where you are going with this and I like it. One conceptual
problem here is the meta-data format. Shell commmand line has the idea
of argument separators as spaces and strings. Although utf-8 almost
works well at the command line, I would have liked it if unicode had
given programmers their own glyph and character set to work in, so we
wouldn't have to go so crazy escaping the concepts that we'd wedged into
ASCII in the 80s.

BUT html/xml have a totally different concept of metadata than that, as
does org-mode...

json comes close to being a command line format that could be parsed
using conventional piping/filters.

In the beginning I thought I'd have gnugol output Lisp forms and the
interface be more like bbdb.  There is a pretty clean json parser for
emacs however, and I've been thinking of using that.

 ---provided you have the new org-eshell.el

I didn't know this existed, cool, I'll fiddle.




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Introducing gnugol - an org-mode-output web search client

2011-01-08 Thread Dave Taht
On 01/08/2011 09:21 AM, Dave Taht wrote:
 On 01/06/2011 09:06 AM, Allen S. Rout wrote:

 3) Going from the Emacs org (or markdown) UI to webspace is really
 disconcerting for me. My fingers do emacs, my eyeballs like green on
 white, 
Correction:

green on *black*... the white of most web pages is so mentally dazzling
it even drowns out my ability to type the word, black...

So while I'm on this subject is there a good way to good way to match
the org-mode emacs color theme with the html output?

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Introducing gnugol - an org-mode-output web search client

2011-01-07 Thread brian powell
I know--the *eshell* is not necessary too--its illustrative--its just an
example--showing that you could (using your new module) create
multiple asynchronous/coprocesses (in their own dedicated buffers) uniquely
named shells and maybe make calls out to goosh and use surfraw and/or gnugol
somehow.

And, many thanks to you too Konrad for your new org-eshell.el
module--hopefully more people will realize the possibilities of these great
tools.

Eshell has some unique properties that ought to be explored more.

On Thu, Jan 6, 2011 at 3:11 PM, Konrad Hinsen konrad.hin...@fastmail.netwrote:

 On 6 Jan 2011, at 19:19, brian powell wrote:

  ** Example/possibilities:
 apt-get install surfraw
 ...
 [[eshell:*eshell*:(rename-buffer vvv)]]
 [[eshell:*eshell*:(rename-buffer ttt)]]


 There's no need for those two lines, because...

  [[eshell:vvv:date]]


 ... this one will create the eshell buffer vvv if it doesn't exist already.


  [[eshell:ttt:sr wikipedia goosh]]


 Same here.

 Konrad.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Introducing gnugol - an org-mode-output web search client

2011-01-06 Thread Allen S. Rout
Dave Taht d...@teklibre.org writes:

 So over the holiday I wrote a command line web search client with an
 emacs interface and called it gnugol. It uses the google json and bing
 json APIs to search the web, and outputs the results in plain text, in
 whatever format you're working in, notably, org, so you can navigate the
 results in the mind-set you're in.

[...]

On unrelated surfing (reddit), I ran into this:

http://surfraw.alioth.debian.org/

Do you think it's possible that your two powers combined, would make you
INVINCIBLE?


I don't know how much they dink with the return stream; it may be not
at all, which would be inauspicious for a combination.  But if they're
doing any sort of output capture/filter, then adding an org-mode flavor
to the list might be really straightforward.



- Allen S. Rout



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Introducing gnugol - an org-mode-output web search client

2011-01-06 Thread Konrad Hinsen

On 6 Jan 2011, at 19:19, brian powell wrote:


** Example/possibilities:
apt-get install surfraw
...
[[eshell:*eshell*:(rename-buffer vvv)]]
[[eshell:*eshell*:(rename-buffer ttt)]]


There's no need for those two lines, because...


[[eshell:vvv:date]]


... this one will create the eshell buffer vvv if it doesn't exist  
already.



[[eshell:ttt:sr wikipedia goosh]]


Same here.

Konrad.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Introducing gnugol - an org-mode-output web search client

2011-01-05 Thread Achim Gratz
Dave Taht d...@teklibre.org writes:
 A fix for one of the problems reported on this list (by bart, thx!) was
 to make sure that the path

 /usr/local/lib

 was in /etc/ld.so.conf or in /etc/ld.so.conf.d and to run

 sudo ldconfig

 after installing libjannson.

 I've updated the documentation to reflect his.

That really shouldn't be necessary for locally built applications since
these already know where the libraries are installed.  In fact doing it
this way opens a potential security hole since now the dynamic loader
trusts libraries in /usr/local/lib/ and may prefer it over system
libraries for _all_ applications (you may or may not want this
behaviour, but in any case should be aware of it).

Better set up the correct runtime search path with an '-rpath=dir'
argument to the linker invocation for the install and you never need to
invoke ldconfig.  Anything installed in /usr/local shouldn't require
full administrator privileges and certainly not alter the system
behaviour.  That most Linux distributions don't make that distinction
between system and local applications anymore doesn't mean it's the
correct thing to do...


Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Introducing gnugol - an org-mode-output web search client

2011-01-04 Thread Achim Gratz
Bart Bunting b...@ursys.com.au writes:
 Running into a few issues at the moment:  I did download and build the
 jansson library which is installed in /usr/local 

 However when I run gnugol I'm seeing the following error:

 Errors: google(1): ../engines/google.so: cannot open shared object file: No 
 such file or directory
 google: failed to acquire shared lib

 Warnings:google(1): Not in default location, error: libjansson.so.0: cannot 
 open shared object file: No such file or directory

You will either need to set up the DT_RUNPATH section in the executable
to point to where the library is installed or set up the LD_LIBRARY_PATH
environment variable to include the correct location.  The first option
requires to edit the linker invocation in the makefile, while the latter
is best done via a wrapper script that then calls the executable.

 I have the *.so files from gnugol in the default place that the makefile
 puts them, /var/lib/gnugol.  I also tried simlinking them into
 /usr/local/lib but this doesn't appear to make any difference.

 The error also suggests that the janson library isn't being found.

 Although the ldd output doesn't appear to list it?

Try 'ldd -v', if that also doesn't show anything, then most likely the
program itself dynamically loads new libraries at runtime (probably
after a fork).  Setting LD_TRACE_LOADED_OBJECTS (preferrably in a
wrapper script) to something non-empty should then give some ldd-like
output.


Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Introducing gnugol - an org-mode-output web search client

2011-01-04 Thread Bart Bunting
Hi Achim,

I had made the silly mistake of not remembering to run ldconfig.  Once
this was done the janson libraries were found and gnugol started working
for me.

Apollogies I didn't get around to posting the fix/thing to remember
earlier.

Thank you very much though for the information, it has taught me several
things I didn't know about tracing things like this.

Cheers


Bart



On Tue, 04 Jan 2011 11:06:38 +0100, Achim Gratz strom...@nexgo.de wrote:
 Bart Bunting b...@ursys.com.au writes:
  Running into a few issues at the moment:  I did download and build the
  jansson library which is installed in /usr/local 
 
  However when I run gnugol I'm seeing the following error:
 
  Errors: google(1): ../engines/google.so: cannot open shared object file: No 
  such file or directory
  google: failed to acquire shared lib
 
  Warnings:google(1): Not in default location, error: libjansson.so.0: cannot 
  open shared object file: No such file or directory
 
 You will either need to set up the DT_RUNPATH section in the executable
 to point to where the library is installed or set up the LD_LIBRARY_PATH
 environment variable to include the correct location.  The first option
 requires to edit the linker invocation in the makefile, while the latter
 is best done via a wrapper script that then calls the executable.
 
  I have the *.so files from gnugol in the default place that the makefile
  puts them, /var/lib/gnugol.  I also tried simlinking them into
  /usr/local/lib but this doesn't appear to make any difference.
 
  The error also suggests that the janson library isn't being found.
 
  Although the ldd output doesn't appear to list it?
 
 Try 'ldd -v', if that also doesn't show anything, then most likely the
 program itself dynamically loads new libraries at runtime (probably
 after a fork).  Setting LD_TRACE_LOADED_OBJECTS (preferrably in a
 wrapper script) to something non-empty should then give some ldd-like
 output.
 
 
 Achim.
 -- 
 +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+
 
 Wavetables for the Waldorf Blofeld:
 http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables
 
 
 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 

Bart Bunting

URSYS Pty. Ltd 
13 Burwood Rd.  Burwood  NSW  2134  Australia
Ph.   +61 2 8745 2811
Fax  +61 2 8745 2828

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Introducing gnugol - an org-mode-output web search client

2011-01-04 Thread Matt Lundin
Hi Dave,

Dave Taht d...@teklibre.org writes:

 On 01/04/2011 01:17 AM, Bastien wrote:

 Looks interesting!

 It's so awesome to have people trying this - my last project had 2 users
 total

I agree that this looks very interesting. Thanks!

 I'm using ArchLinux.  I installed jansson from `yaourt -S jansson',
 jansson compiles fine.  I then looked for curl-dev but couldn't find
 it in ArchLinux.

 If you got this far on the build, you probably have the curl-dev
 dependency resolved via other means. libcurl-dev?

I believe that on Arch libcurl is included in the curl package.

Best,
Matt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode