solbu / hldig Goto Github PK
View Code? Open in Web Editor NEWhl://Dig is a fork of ht://Dig, a web indexing and searching system for a small domain or intranet
Home Page: https://solbu.github.io/hldig/
License: Other
hl://Dig is a fork of ht://Dig, a web indexing and searching system for a small domain or intranet
Home Page: https://solbu.github.io/hldig/
License: Other
SplitMatches.cc: In constructor ‘SplitMatches::SplitMatches(Configuration&)’:
SplitMatches.cc:80:25: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
char *config_item = "search_results_order";
These warnings need to be fixed.
HTML.cc: In constructor ‘HTML::HTML()’:
HTML.cc:88:170: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
tags.Pattern("title|/title|a|/a|h1|h2|h3|h4|h5|h6|/h1|/h2|/h3|/h4|/h5|/h6|noindex|/noindex|img|li|meta|frame|area|base|embed|object|link|style|/style|script|/script");
^
HTML.cc:94:197: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
nobreaktags.Pattern("font|/font|em|/em|strong|/strong|i|/i|b|/b|u|/u|tt|/tt|abbr|/abbr|code|/code|q|/q|samp|/samp|kbd|/kbd|var|/var|dfn|/dfn|cite|/cite|blink|/blink|big|/big|small|/small|s|/s");
^
HTML.cc:99:122: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spacebeforetags.Pattern("title|h1|h2|h3|h4|h5|h6|address|blockquote|noindex|img|li|th|td|dt|dd|p|br|hr|center|spacer");
^
HTML.cc:101:81: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
spaceaftertags.Pattern("/title|/h1|/h2|/h3|/h4|/h5|/h6|/address|/blockquote");
^
HTML.cc:105:73: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
metadatetags.Pattern("date|dc.date|dc.date.created|dc.date.modified");
^
HTML.cc: In member function ‘virtual void HTML::parse(Retriever&, URL&)’:
HTML.cc:406:21: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (!in_space && spacebeforetags.CompareWord((char *)position)
^
HTML.cc:221:25: warning: variable ‘start’ set but not used [-Wunused-but-set-variable]
unsigned char *q, *start;
:~/src/htdig$ ./configure
configure: error: cannot find sources (htdig/htdig.cc) in . or ..
This is to help complete #21 and for project 1
We'll need some sample html web pages for testing. They can be downloaded from any web site, but some of the links they contain will have to be altered so when http://localhost is crawled, the pages can find each other.
It may be easier just to create 3 or 4 web pages with a few lines of arbitrary text that link to each other.
I am seriously considering using simplectemplate to generate the web site. @dafky2000, do you think sct would be suitable to generate a site similar to this one? https://andy5995.github.io/hldig
And do you suggest using the latest release? Any more big changes in your library scheduled? Should I wait a bit?
Because hl://Dig is a fork of ht://Dig, it should have a different logo.
Any graphic designers interested in this?
Latest build on travis
The web site is at https://andy5995.github.io/hldig/index.html
The style sheet is in docs/assets/css
https://github.com/andy5995/hldig/tree/master/docs
I haven't finished converting the entire site yet. There are only a few pages that use the stylesheet. You can see which ones by looking in the docs/infiles directory. The files there have been used to generate the corresponding .html files in docs/
If you see any outdated html code, feel free to change some of it.
If start_url isn't specified in htdig.conf, spit out a message that the config file needs to be edited and exit.
Presently, if that field is blank, http://www.htdig.org/ is used as the start_url
Lines 2378 to 2390 in 39177ad
Anyone interested in creating a de.po file and doing a translation?
https://github.com/andy5995/htdig/blob/6fde40d533d603b54ff2ef3ef997b0740a914837/po/messages.pot#L1
The search box should appear on tag pages, just as it does on category pages.
Review and update docs in htdoc
I tried this last week, and after configure
completed, I was able to run make check
./configure --prefix=$PWD/testing --with-ssl --with-apche=/usr/sbin/apache2 --enable-tests
Though the checks failed. I assume that had something to do with the tests not being updated since 2004. And I don't know how to code that into a configure.ac file or Makefile.am
But now I don't even get that far. When trying configure with the same options:
configure: error: "apache server executable not found"
I can't think of any reason for the change, but the most likely would be from changes in the autoconf and automake files when I updated them so autotools would work again.
As far as I'm concerned, this is low priority. Test can be written after the code is understood more by the development team and there's been more time to discuss what tests should be performed.
But anyone who'd like to work on this, please feel free to do so.
When the default installation directories are changed by ./configure --prefix , the paths in this script are not updated accordingly when make install
is run.
Anyone interested in doing a PR to fix this?
QueryLexer.cc:62:25: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
&& (type.IsChar(text) && text != '/'
Feel free to join the chat room.
These warnings need to be fixed
Transport.cc: In destructor 'virtual Transport_Response::~Transport_Response()':
Transport.cc:102:14: warning: deleting object of polymorphic class type 'HtDateTime' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete _modification_time;
^
Transport.cc:108:14: warning: deleting object of polymorphic class type 'HtDateTime' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete _access_time;
^
Transport.cc: In member function 'virtual void Transport_Response::Reset()':
Transport.cc:123:14: warning: deleting object of polymorphic class type 'HtDateTime' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete _modification_time;
^
Transport.cc:129:14: warning: deleting object of polymorphic class type 'HtDateTime' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete _access_time;
Some Valgrind output
$ valgrind --leak-check=full ./htdig
==21792== Memcheck, a memory error detector
==21792== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==21792== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==21792== Command: ./htdig
==21792==
==21792== Conditional jump or move depends on uninitialised value(s)
==21792== at 0x553CFF3: CDB___lock_put_nolock.isra.1 (lock.c:650)
==21792== by 0x553D0B2: CDB_lock_put (lock.c:622)
==21792== by 0x5536DF7: CDB___ham_release_meta (hash_meta.c:82)
==21792== by 0x55308A9: CDB___ham_open (hash.c:254)
==21792== by 0x551FEDD: CDB___db_dbopen (db.c:341)
==21792== by 0x55204AD: CDB___db_open (db.c:249)
==21792== by 0x577793F: DB2_db::Open(char const*, int, int) (DB2_db.cc:84)
==21792== by 0x506820F: DocumentDB::Open(String const&, String const&, String const&) (DocumentDB.cc:96)
==21792== by 0x10FD0D: main (htdig.cc:329)
==21792==
==21792== Conditional jump or move depends on uninitialised value(s)
==21792== at 0x553CFF3: CDB___lock_put_nolock.isra.1 (lock.c:650)
==21792== by 0x553D0B2: CDB_lock_put (lock.c:622)
==21792== by 0x5536DF7: CDB___ham_release_meta (hash_meta.c:82)
==21792== by 0x55317D2: CDB___ham_c_get (hash.c:883)
==21792== by 0x5521652: CDB___db_get (db_am.c:433)
==21792== by 0x5777650: DB2_db::Get(String const&, String&) (DB2_db.cc:287)
==21792== by 0x50682DC: DocumentDB::Open(String const&, String const&, String const&) (DocumentDB.cc:116)
==21792== by 0x10FD0D: main (htdig.cc:329)
==21792==
==21792== Conditional jump or move depends on uninitialised value(s)
==21792== at 0x553CFF3: CDB___lock_put_nolock.isra.1 (lock.c:650)
==21792== by 0x553D0B2: CDB_lock_put (lock.c:622)
==21792== by 0x55370DF: CDB___ham_item_init (hash_page.c:201)
==21792== by 0x552FF22: CDB___ham_c_close (hash.c:498)
==21792== by 0x5520DF1: CDB___db_c_close (db_am.c:191)
==21792== by 0x552165E: CDB___db_get (db_am.c:436)
==21792== by 0x5777650: DB2_db::Get(String const&, String&) (DB2_db.cc:287)
==21792== by 0x50682DC: DocumentDB::Open(String const&, String const&, String const&) (DocumentDB.cc:116)
==21792== by 0x10FD0D: main (htdig.cc:329)
==21792==
==21792== Conditional jump or move depends on uninitialised value(s)
==21792== at 0x553CFF3: CDB___lock_put_nolock.isra.1 (lock.c:650)
==21792== by 0x553D0B2: CDB_lock_put (lock.c:622)
==21792== by 0x5538458: CDB___ham_get_cpage (hash_page.c:1563)
==21792== by 0x55384B0: CDB___ham_item (hash_page.c:101)
==21792== by 0x5531481: CDB___ham_c_get (hash.c:859)
==21792== by 0x5777227: DB2_db::Start_Get() (DB2_db.cc:230)
==21792== by 0x50691A0: DocumentDB::URLs() (DocumentDB.cc:590)
==21792== by 0x110181: main (htdig.cc:359)
==21792==
==21792== Conditional jump or move depends on uninitialised value(s)
==21792== at 0x553CFF3: CDB___lock_put_nolock.isra.1 (lock.c:650)
==21792== by 0x553D0B2: CDB_lock_put (lock.c:622)
==21792== by 0x5536DF7: CDB___ham_release_meta (hash_meta.c:82)
==21792== by 0x55312AF: CDB___ham_c_get (hash.c:883)
==21792== by 0x5777227: DB2_db::Start_Get() (DB2_db.cc:230)
==21792== by 0x50691A0: DocumentDB::URLs() (DocumentDB.cc:590)
==21792== by 0x110181: main (htdig.cc:359)
==21792==
==21792== Conditional jump or move depends on uninitialised value(s)
==21792== at 0x553CFF3: CDB___lock_put_nolock.isra.1 (lock.c:650)
==21792== by 0x553D0B2: CDB_lock_put (lock.c:622)
==21792== by 0x553174D: CDB___ham_c_get (hash.c:886)
==21792== by 0x5777227: DB2_db::Start_Get() (DB2_db.cc:230)
==21792== by 0x50691A0: DocumentDB::URLs() (DocumentDB.cc:590)
==21792== by 0x110181: main (htdig.cc:359)
==21792==
==21792== Conditional jump or move depends on uninitialised value(s)
==21792== at 0x553CFF3: CDB___lock_put_nolock.isra.1 (lock.c:650)
==21792== by 0x553D0B2: CDB_lock_put (lock.c:622)
==21792== by 0x5536DF7: CDB___ham_release_meta (hash_meta.c:82)
==21792== by 0x5531EB7: CDB___ham_c_put (hash.c:1017)
==21792== by 0x552176A: CDB___db_put (db_am.c:508)
==21792== by 0x5777598: DB2_db::Put(String const&, String const&) (DB2_db.cc:266)
==21792== by 0x5068173: DocumentDB::Close() (DocumentDB.cc:191)
==21792== by 0x6B4A90F: __run_exit_handlers (exit.c:83)
==21792== by 0x6B4A969: exit (exit.c:105)
==21792== by 0x6B352B7: (below main) (libc-start.c:325)
==21792==
==21792==
==21792== HEAP SUMMARY:
==21792== in use at exit: 13,147,616 bytes in 1,744 blocks
==21792== total heap usage: 4,278 allocs, 2,534 frees, 16,386,996 bytes allocated
==21792==
==21792== LEAK SUMMARY:
==21792== definitely lost: 0 bytes in 0 blocks
==21792== indirectly lost: 0 bytes in 0 blocks
==21792== possibly lost: 0 bytes in 0 blocks
==21792== still reachable: 13,147,616 bytes in 1,744 blocks
==21792== of which reachable via heuristic:
==21792== newarray : 232 bytes in 1 blocks
==21792== suppressed: 0 bytes in 0 blocks
==21792== Reachable blocks (those to which a pointer was found) are not shown.
==21792== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==21792==
==21792== For counts of detected and suppressed errors, rerun with: -v
==21792== Use --track-origins=yes to see where uninitialised values come from
==21792== ERROR SUMMARY: 10 errors from 7 contexts (suppressed: 0 from 0)
Anyone interested in doing a PR to fix this?
https://github.com/andy5995/htdig/blob/daeaf867f43c4988559bcc6d737eaa357899738b/httools/htnotify.cc
g++ -DHAVE_CONFIG_H -I. -I. -I../include -DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\" -I../include -I../htlib -I../htnet -I../htcommon -I../htword -I../db -I../db -DSENDMAIL=\"/usr/sbin/sendmail\" -g -O2 -Wall -fno-rtti -fno-exceptions -c -o htload.o `test -f 'htload.cc' || echo './'`htload.cc
htnotify.cc: In function ‘void htnotify(DocumentRef&)’:
htnotify.cc:332:66: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
add_notification(date, email, ref.DocURL(), "Malformed Date");
Feel free to join the chat room.
Anybody interested in doing a PR for this?
WordKeyInfo.cc:48:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] name.set("Word");
Wouldn't it be nice if some of the output messages from hldig and the other programs in the package output strings in other languages?
https://www.gnu.org/software/gettext/manual/html_node/index.html#SEC_Contents
I'm working on it...
@marioecg, would you be interested in doing this?
https://github.com/andy5995/hldig/blob/master/TRANSLATING.md
@svitlana-galianova, would you be interested in doing this?
https://github.com/andy5995/hldig/blob/master/TRANSLATING.md
This warning needs to be fixed
URLTrans.cc: In function 'String& encodeURL(String&, char*)':
URLTrans.cc:75:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
static char *digits = "0123456789ABCDEF";
Although I've added some support for translating the output messages using gettext, I haven't completed the process yet. Now I wonder if a different method should be used. I have used used gettext before with a C program, but not a C++ program. I wonder if there are alternate solutions that should be considered. Does anyone have suggestions about this?
I've done some searching, but haven't found answers yet to how this would be done
Using gettext with a C program, a string would be marked like this:
printf (_("I am %d years old and my zipcode is %d\n"), age, zipcode);
But that wouldn't work with a C++ cout string.
cout << "I am " << age << " years old and my zipcode is " << zipcode;
There would have to be marks around each string within the quotation marks... or would there? I couldn't find any info about it that made sense.
Or maybe implementing tinyformat.h should be an option.
tinyformat.h is a type safe printf replacement library in a single C++ header file. If you've ever wanted printf("%s", s) to just work regardless of the type of s, tinyformat might be for you.
This shows in the travis build log:
ibtool: warning: 'libfuzzy.la' has not been installed in '/home/travis/build/andy5995/htdig/tempbuild/lib/htdig' near L4844 during make install
I assume a Makefile needs editing somewhere. Not sure if that's new or I just now noticed it. I don't know how to fix it yet.
I was looking at http://www.lighttpd.net/ for a light-weight web server. Apache is great of course, but for testing htdig, I think something more minimal would be adequate.
If someone sets this up and documents the process, we can use it for testing.
Once someone sets up lighthttpd , htdig should be able crawl http://localhost and run cgi programs such as htsearch.
We could supply a few html pages so when htdig crawls http://localhost, it will find something. :)
I created a project for this: https://github.com/andy5995/htdig/projects/1
src/common needs a Makefile
Fails the html validator:
https://validator.w3.org/nu/?doc=https%3A%2F%2Fandy5995.github.io%2Fhldig%2F
The files that need to be edited are
https://github.com/andy5995/hldig/blob/master/docs/templates/default.html
https://github.com/andy5995/hldig/blob/master/docs/assets/css/style.css
Anyone interested in doing a PR to fix this?
qtest.cc:72:18: warning: variable ‘override_config’ set but not used [-Wunused-but-set-variable]
int override_config=0;
Feel free to join the chat room.
These warnings need to be fixed.
HtHTTP.cc: In member function 'int HtHTTP::ParseHeader()':
HtHTTP.cc:648:20: warning: deleting object of polymorphic class type 'HtDateTime' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete _response._modification_time;
^
HtHTTP.cc:656:45: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if(! _connection->Read_Line(line, "\n"))
^
HtHTTP.cc: In member function 'int HtHTTP::ReadChunkedBody()':
HtHTTP.cc:997:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (!_connection->Read_Line(ChunkHeader, "\r\n"))
^
HtHTTP.cc:1038:54: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (!_connection->Read_Line(ChunkHeader, "\r\n"))
^
HtHTTP.cc:1042:54: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (!_connection->Read_Line(ChunkHeader, "\r\n"))
If you run ack "Verbose mode. This increases the verbosity of the"
you'll see a lot of the same messages in several files.
So for example, this code:
cout << "\t-v\tVerbose mode. This increases the verbosity of the\n";
cout << "\t\tprogram. Using more than 2 is probably only useful\n";
cout << "\t\tfor debugging purposes. The default verbose mode\n";
Could go into htcommon/messages.c and all the other programs that use it could call a variable containing the contents of the string in that file.
And actually, to help with preparing the source for translating, instead of using "cout" we'll do this:
printf (_("\t-v\tVerbose mode. This increases the verbosity of the\n\
\t\tprogram. Using more than 2 is probably only useful\n\
\t\tfor debugging purposes. The default verbose mode\n\
\t\tgives a nice progress report while digging.\n\n"));
@AlexChristoforides would you be interested in working on this?
Build fails at Accent.c:
[...]
g++ -DHAVE_CONFIG_H -I. -I. -I../include -DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\" -I../include -I../htlib -I../htnet -I../htcommon -I../htword -I../db -I../db -DMV=\"/bin/mv\" -g -O2 -Wall -fno-rtti -fno-exceptions -c Metaphone.cc -o Metaphone.o >/dev/null 2>&1
Accents.cc:78:42: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
'o', 'u', 'u', 'u', 'u', 'y', 254, 255};
^
Accents.cc:78:42: error: narrowing conversion of '129' from 'int' to 'char' inside { } [-Wnarrowing]
Accents.cc:78:42: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
Accents.cc:78:42: error: narrowing conversion of '131' from 'int' to 'char' inside { } [-Wnarrowing]
Accents.cc:78:42: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
Accents.cc:78:42: error: narrowing conversion of '133' from 'int' to 'char' inside { } [-Wnarrowing]
[...]
Debian's patch for 3.2.0b6-16 may help fix this.
https://packages.debian.org/stable/web/htdig
htdig_3.2.0b6-16.debian.tar.xz
When running jekyll locally, this was output in the console when I ran htdig -i
. It crawled the jekyll web server running at http://localhost:4000
[2017-11-12 14:44:22] ERROR bad URI `/tag/कैनबिस/'.
[2017-11-12 14:44:22] ERROR bad URI `/tag/अध-ययन/'.
[2017-11-12 14:44:22] ERROR bad URI `/tag/मनःचिकित-सा/'.
[2017-11-12 14:44:22] ERROR bad URI `/tag/कोगनीटिव/'.
[2017-11-12 14:44:22] ERROR bad URI `/tag/दवा/'.
[2017-11-12 14:44:22] ERROR bad URI `/tag/चिकित-सा/'
I've been having a difficult time deciding on what do about the existing documentation and what kind of web site should be put in place. I thought of using jekyll to generate the site, or perhaps just using a wordpress blog. I'm hesitant to change much of the older documentation because it reflects the work the original maintainers did on this project.
The original htdig site seems to have expired, but because they were using the files from the "htdoc/" folder, I was able to publish a version of the original site to
https://andy5995.github.io/htdig/
by renaming the folder to "docs/" and choosing the repo setting to publish the docs folder.
At this point, I'm thinking of keeping the original docs as they are, but use portions of them to create an up-to-date web site.
But I'm still having trouble envisioning what would be the best way to manage a site for the htdig documentation.
The warning needs to be fixed.
WordKey.cc: In member function 'int WordKey::Prefix() const':
WordKey.cc:372:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(IsDefined(j))
^
and this one, in a related file:
WordKeyInfo.cc: In member function 'int WordKeyField::SetString()':
WordKeyInfo.cc:48:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
name.set("Word");
https://github.com/andy5995/htdig/blob/1d0d2f4e17f2bbbfc6b402c1ece51e7e80fe66e2/htword/WordKey.cc#L1
Anyone interested in doing a PR to fix this?
qtest.cc:126:42: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
String originalWords = input["words"];
Feel free to join the chat room.
@Debu44 is working on this.
Anyone interested in doing a PR to fix this?
qtest.cc:135:53: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
Feel free to join the chat room.
Should htdig use libmysql or other database library instead of having code for it's own?
These file don't get removed when make uninstall
is run.
./bin/rundig
./htdocs/htdig/star_blank.gif
./htdocs/htdig/button8.gif
./htdocs/htdig/star_blank.png
./htdocs/htdig/star.gif
./htdocs/htdig/htdig.gif
./htdocs/htdig/button9.png
./htdocs/htdig/button5.png
./htdocs/htdig/button3.gif
./htdocs/htdig/button4.gif
./htdocs/htdig/button6.gif
./htdocs/htdig/button2.gif
./htdocs/htdig/button8.png
./htdocs/htdig/buttonl.gif
./htdocs/htdig/htdig.png
./htdocs/htdig/button5.gif
./htdocs/htdig/button1.png
./htdocs/htdig/button10.gif
./htdocs/htdig/button7.gif
./htdocs/htdig/button7.png
./htdocs/htdig/buttonl.png
./htdocs/htdig/search.html
./htdocs/htdig/button6.png
./htdocs/htdig/button1.gif
./htdocs/htdig/buttonr.png
./htdocs/htdig/star.png
./htdocs/htdig/button4.png
./htdocs/htdig/button9.gif
./htdocs/htdig/button10.png
./htdocs/htdig/buttonr.gif
./htdocs/htdig/button2.png
./htdocs/htdig/button3.png
./conf/HtFileType-magic.mime
./conf/htdig.conf
./conf/mime.types
./conf/cookies.txt
./share/htdig/wrapper.html
./share/htdig/short.html
./share/htdig/synonyms
./share/htdig/footer.html
./share/htdig/english.aff
./share/htdig/header.html
./share/htdig/syntax.html
./share/htdig/bad_words
./share/htdig/long.html
./share/htdig/english.0
./share/htdig/nomatch.html
./bin/HtFileType
One side effect of this problem is that if these files are altered in the source folder, they won't overwrite and update the files in the install directory the next time make install
is run.
installdir/*.html
installdir/htdig.conf
@sexybiggetje, would you be interested in doing another translation?
https://github.com/andy5995/htdig/blob/6fde40d533d603b54ff2ef3ef997b0740a914837/po/messages.pot#L1
Right now, --with-ssl must be passed to configure. ssl should be enabled by default, and there should be a configure option to --disable-ssl
It's safe to assume that this behavior would be set in configure.ac
I don't know how to do it yet. :)
Coming up soon on the TODO list is modernizing the html code output by htsearch
.
Some of that output can be seen by doing a search at http://htdig.dreamhosters.com/
So far I'm heavily leaning toward using @dafky2000's simplectemplate. I think it would be the perfect library for this task.
Anyone interested in doing a PR to fix this?
g++ -DHAVE_CONFIG_H -I. -I. -I../include -DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\" -I../include -I../htlib -I../htnet -I../htcommon -I../htword -I../db -I../db -DSENDMAIL=\"/usr/sbin/sendmail\" -g -O2 -Wall -fno-rtti -fno-exceptions -c -o htstat.o `test -f 'htstat.cc' || echo './'`htstat.cc
htpurge.cc: In function ‘Dictionary* purgeDocs(Dictionary*)’:
htpurge.cc:193:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
reportError("Database is empty!");
Feel free to join the chat room.
I screwed up something at some point. Here's a directory listing of my testing/lib/hldig directory.
libcommon.a libfuzzy.a libht.a libhtnet-...so libhtword.a
libcommon.la libfuzzy.la libht.la libhtnet.so libhtword.la
libcommon-...so libfuzzy-...so libhtnet.a libht-...so libhtword-...so
libcommon.so libfuzzy.so libhtnet.la libht.so libhtword.so
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.