free hit counters
The Process Forum - View Single Post - Cyoc down
Thread: Cyoc down
View Single Post
Unread 1 Week Ago   #15
godleydemon
Can I have a cookie
 
godleydemon's Avatar
 
Join Date: Jun 2008
Location: Wasilla, Alaska, US
Posts: 712
Re: Cyoc down

sorry I'm a little late. Work got busy and I couldn't spend as much time as I thought I would be able to. So here's the zip: https://mega.nz/file/aZkVwQ6B#v2A0nI...tOvOCkt-A8fsPw

So, a few things. I added a drop down box to select, none, synonyms and author. To switch between what mode of search your using. Synonyms works off of the synonyms.json file, something you can edit in and outside the program. Please be mindful, if the program crashes on startup after editing the json file, then most likely you have a syntax error somewhere. Not enough spaces, forgot a comma, forgot a quotation mark, ect. search works on keyword terms, if you select none in the drop down. Then it's going to search whatever is in that text box as a full phrase or word. So if you say type in "breasts shrinking" then it's going to search exactly "breasts shrinking" but if you type in "breasts, shrinking" then it's going to search breasts and shrinking. If you choose synonyms in the drop down, it works sorta the same way. If your search term matches the name of one of the arrays in the json file. Then it'll search for everything inside of that array. So searching for "breasts shrinking" is going to search about 1000+ different permutations of that. If you type in "breasts, shrinking" it's going to search with breasts synonyms and shrinking syonyms and display both. I originally had search setup to where both search terms had to be present in the contents of the row to display in the top panel. But I changed search today a crap ton to try and make it faster and I think I borked that part of it. So it's just going to show rows that have either breasts synonyms or shrinking synonyms or both.

The program might hang on first startup or when first selecting a database. I think I got that figured out and it'll no longer happen, but it might, so forwarning. It's just because the databases are fucking huge and take a bit to load. When they do load, they do not appear in one lump sum like I had it before. The top panel will still be blank until you search for something. This was to try and speed things up and free up memory.

Good news! I got synonym searches down from like 10 minutes down to about 30 seconds to a minute. The ETA loading bar isn't exactly accurate since it doesn't really have time to figure out what the hell to display. none and author search still take a little while. I haven't transferred them over to the new functions to do the quick searching. I ran out of time and got to tired before heading home (already stayed an hour over so far). I've gotten search pretty much done beyond that and a few bugs here and there. I also need to do a new scan on changing mirror to grab authors and to make sure I grabbed everything. I did something different with changing mirror and tried design a spider bot to web scrape everything, but I've been staring at this code for a while and I think I wrote this while stoned. The only other problem that's not easily solved and would have to be something I fix through a rescan. It did not save new line paragraphs from the original scan of data. So all of Cyoc's contents are just one paragraph. Unless the paragraphs were separated by a blank new line. This is annoying and I've thought of thousands of ways I might be able to fix it, but it all comes down to, the easiest would just be a rescan. Which I might still do, who knows. Because I'll have to do a rescan anyways to grab branch data in later builds. I had planned to add in a look and feel system to at least adjust font sizes. I also planned to add in functionality to select and copy things but completely spaced it and forgot about it till I started typing this.

To be honest, the .exe is completely untested on any other machine but this one. So I have no idea if it's going to actually work or not. I normally like testing stuff like this on several computers first before I do any kind of distribution or further testing. I always tend to screw exe's up for some reason -shrugs- the zip file includes both databases for cyoc and changing mirror, the synonym.json file and of course the exe and the internal files it needs to function. Hopefully everything works right, let me know if it doesn't and I'll beat it over the head with a brick. Thanks for waiting guys
__________________

Last edited by godleydemon; 1 Week Ago at 11:13 PM.
godleydemon is offline   Reply With Quote