Messages - David.P [ switch to compact view ]

Pages: prev1 ... 35 36 37 38 39 [40] 41 42next
196
General Software Discussion / Database...
« on: December 09, 2008, 01:59 PM »
Hmm, actually that adress book seems to be some sort of SQL database...

It consists of the following several files:

phonebook.db
phonebook.db.lck
phonebook.db.log
phonebook.db.script
phonebook.db.properties

of which "phonebook.db.script" contains the lines below:

#HSQL Database Engine 1.8.0.9
#Tue Dec 09 20:51:59 CET 2008
hsqldb.script_format=0
runtime.gc_interval=0
sql.enforce_strict_size=false
hsqldb.cache_size_scale=8
readonly=false
hsqldb.nio_data_file=true
hsqldb.cache_scale=14
version=1.8.0
hsqldb.default_table_type=memory
hsqldb.cache_file_scale=1
hsqldb.log_size=200
modified=yes
hsqldb.cache_version=1.7.0
hsqldb.original_version=1.8.0
hsqldb.compatible_version=1.8.0

Would that make any difference to the original question?

David.P

197
Thanks everyone for the answers!

Yep, I think the app would have to be re-engineered such that it only reads the file in memory and then leaves it alone (like e.g. notepad). Additionally, the app would have to read the file again first before actually writing to it (in case the other instance would have written to it in the meantime).

Why oh why is there no software (hardware?) solution to that problem? I think that this problem occurs very often. Well of course it could cause all kinds of trouble if used without caution.

The app is btw actually a ISDN caller identifier software, and the to-be-shared file simply is the phonebook that only changes if on either end someone adds a new telephone number entry.   

Cheers David.P

198
Hi Forum,

on two PC's on the network I run a (the same) application. That app uses a config sort of file which is updated from time to time, either from the first PC, or from the other.

That file is located on a network drive, so access from each of the two apps is no problem. However, if the file is in use by the app on one PC, the other PC can't read that file (because it's locked), let alone write to it.

What I was wondering, is there any solution to that problem? I mean, like a software that somehow simulates a file that two apps can access at the same time (...or something)?

Thanks already,

Cheers David.P

199
Wow, I can't believe that you simply could do that! Thanks, I'll look into this database and see what I can excerpt from it.

Otherwise, what I have found out is that regarding "spidering intelligence", the software Blackwidow is one of the best, since you can specify

a) which pages are scanned for your wanted links only; and
b) which pages are actually downloaded.

This way, Blackwidow actually manages to crawl from posting to posting in that forum, downloading only the posts and ignoring EVERYTHING else on the website. It also manages not to download every posting multiple times.

Blackwidow however seems to have a hard time to rewrite the html code such that it actually becomes browsable offline  :(

The latter however is what the program WinHttrack does marvelously. WinHttrack unfortunately has the drawback that it doesn't have such sophisticated filter settings as Blackwidow. With WinHttrack, you can't differentiate between pages that are only scanned for links and pages that are downloaded. Therefore, WinHttrack (that does a beautiful job in converting the pages for offline browsing) ends up downloading much more than what you actually are after.

Thanks everyone,
David.P

PS: Filter settings in Blackwidow:


200
Thanks for the tips -- however it seems that basically, each of Httrack and BlackWidow 4.4 (both free) basically can do most of what those commercial website rippers offer.

Otoh -- Httrack, BlackWidow and also WebsitePacker all seem to load tens of thousands of links from that forum where actually there are only are a few thousand useful entries. It seems as if that forum's software generates unique URL's every time something is accessed. This is why every single posting of that forum gets checked and downloaded like a dozen times instead of only once.

So far, I think that BlackWidow is the best software since it can build an explorer-like tree representation of the web site without actually downloading everything first. Then in the end, you only pick the folder containing the stuff you want and download that folder.

It however still seems to take days for BlackWidow to build that folder tree (if it ever gets there at all), for the same "unique URL" reason above...  >:(

David.P

Pages: prev1 ... 35 36 37 38 39 [40] 41 42next
Go to full version