[sword-devel] sword-devel Digest, Vol 27, Issue 12
Yiguang Hu
yighu at yahoo.com
Sat Jun 10 12:22:08 MST 2006
Please ignore this. It's my env problem. It's working
now
--- sword-devel-request at crosswire.org wrote:
> Send sword-devel mailing list submissions to
> sword-devel at crosswire.org
>
> To subscribe or unsubscribe via the World Wide Web,
> visit
>
>
http://www.crosswire.org/mailman/listinfo/sword-devel
> or, via email, send a message with subject or body
> 'help' to
> sword-devel-request at crosswire.org
>
> You can reach the person managing the list at
> sword-devel-owner at crosswire.org
>
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of sword-devel digest..."
>
>
> Today's Topics:
>
> 1. Re: SWORDWeb i18n (Yiguang Hu)
>
>
>
----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 9 Jun 2006 22:04:40 -0700 (PDT)
> From: Yiguang Hu <yighu at yahoo.com>
> Subject: Re: [sword-devel] SWORDWeb i18n
> To: "Troy A. Griffitts" <scribe at crosswire.org>,
> "SWORD Developers'
> Collaboration Forum" <sword-devel at crosswire.org>
> Message-ID:
>
<20060610050440.1213.qmail at web36101.mail.mud.yahoo.com>
> Content-Type: text/plain; charset=iso-8859-1
>
> Troy,
> I updated my sword source from svn and rebuild the
> orbitcpp failed with the following error, Any idea?
> Thanks
> Yiguang
> swordorb-impl.cpp:
>
> sword::ListKey result;
>
> if ((scope) && (strlen(scope)) > 0) {
> lscope =
> parser.ParseVerseList(scope,
> parser, true);
> result = delegate->Search(istr,
> stype,
> flags, &lscope);
> }
> else result = delegate->Search(istr,
> stype,
> flags);
>
> SearchHitList *retVal = new SearchHitList;
> int count = 0;
> for (result = sword::TOP; !result.Error();
> result++) count++;
> retVal->length(count);
> int i = 0;
>
> // if we're sorted by score, let's re-sort
> by
> verse, because Java can always re-sort by score
> result = sword::TOP;
> if ((count) &&
> (long)result.getElement()->userData)
> result.sort(); //line 181
>
>
> [root at rock orbitcpp]$ make
> g++ `pkg-config --cflags sword` -g -O0 -I.
> -I/usr/include/orbitcpp-2.0/
> -I/usr/local/include/orbitcpp-2.0/ `orbit2-config
> --cflags` -c swordorb-impl.cpp
> swordorb-impl.cpp: In member function `virtual
> swordorb::SearchHitList*
> swordorb::SWModule_impl::search(const char*,
> swordorb::SearchType, CORBA::Long, const char*)':
> swordorb-impl.cpp:181: error: 'class sword::ListKey'
> has no member named 'sort'
> make: *** [swordorb-impl.o] Error 1
>
>
>
> --- "Troy A. Griffitts" <scribe at crosswire.org>
> wrote:
>
> > Yiguang,
> >
> > > I have a translation for the zh locale already
> and
> > > used at ccim.org. I'd like to put that into
> > crosswire
> > > repository and others can used it and improve
> it,
> > of
> > > course also makes it easier for me to manage it.
> > > I have attached that file here. Please feel free
> > to
> > > post it or make it as the base for zh version
> > > translation site.
> >
> > I've added your contributed locale as the first
> > official locale in SVN!
> > Thank you! It can be seen from:
> >
> > http://crosswire.org/study?lang=zh_CN
> >
> >
> > > The bible install on ccim still has problem
> > keeping up
> > > with the connection problem with corba. You
> > mentioned
> > > a improvement on this problem before, Is this
> > already
> > > done so I can update it or it is still been
> worked
> > on.
> >
> > Yes, we've done some things. We have 2 security
> > limits which we have
> > added:
> >
> > 1) a maximum number of sessions from a single IP
> > addresss;
> > 2) a maximum number of hits per second from the
> same
> > session.
> >
> > These will hopefully protect against webcrawlers
> > opening thousands of
> > sessions, and also people attempting to scrape the
> > data for an entire
> > Bibles from your site. This will hopefully limit
> > the number of
> > processes spawned by swordweb. The root of the
> > problem you are probably
> > running up against is that the user account
> running
> > tomcat probably has
> > a security setting which places a quota on the
> > maximum number of
> > processes it can run simultaneously. Currently
> > there is 1 orb spawned
> > as a process to handle each web session.
> >
> > The next step we should take is to close inactive
> > orb servers after a
> > short timeout of inactivity-- like 10 seconds.
> This
> > will greatly limit
> > the number of processes running concurrently and
> > should not noticeably
> > change the user experience.
> >
> > So, to sum up. We've made 2 good improvements
> > which you might benefit
> > from already. I'll try to get to this last
> > improvement sometime this week.
> >
> > There have been some fairly significant changes
> in
> > SVN over the past 3
> > weeks, so you might need to upgrade things like
> > clucene if you update
> > your site.
> >
> >
> > > If there is anything I can get involved please
> let
> > me
> > > know. I really like to take advantage of the
> > sword/web
> > > to serve our readers. I have forgot C/C++ almost
> > > completely, but my daily work is on java and
> live
> > on
> > > it.
> >
> > Well, we have one pressing need on swordweb which
> > you might be able to
> > help with. It's listed on the new wiki at:
> >
> > http://crosswire.org/wiki/index.php/Current_events
> >
> > If you feel like helping out, we could definitely
> > use it!
> >
> > Again, thanks for the i18n! Very cool!
> >
> > -Troy.
> >
> >
> >
> > I also played Joe's DWR and developed couple of
> > > small monitor tools to simplify my work
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the sword-devel
mailing list