#and wrote a bunch of code that automatically formats it from a to b
Explore tagged Tumblr posts
dkettchen · 7 months ago
Text
Tumblr media Tumblr media
Now this may not seem like a massive change in format, but boy howdy do I feel proud of myself for writing the functions to automate this ehehehehehe (unfortunately for me ao3 ship stat op used a different formatting for the pre-2020 tables, so I'll have to write another function to sort those ones out too ToT)
9 notes · View notes
hydrus · 7 years ago
Text
Version 300
youtube
windows
zip
exe
os x
app
tar.gz
linux
tar.gz
source
tar.gz
🎉 Merry v300! 🎉
I had a great week adding interesting new gui stuff.
system:known url
You can now search for files that have or lack certain known URLs! It comes under a new system predicate, 'system:known url', and supports multiple search types--exact url, domain, regex, or from a dropdown of the client's current url classes. I am really pleased with it.
The db URL search code is currently slow--maybe ten seconds on a big client with several hundred thousand stored URLs--but I have some ideas on how to speed it up.
autocomplete favourites
I have prototyped a way to select some favourite tags from the regular tag autocomplete interface. The 'results' list is now tucked into a page in a small notebook, and I've added a second 'favourites' list beside it. You can edit these favourites under options->tags and quickly switch between the results and favourites lists by hitting left or right arrow on an empty text input. If the favourites list is selected, it will capture arrow up/down and page up/down and enter key presses just like the results list, so it should be entirely possible to now enter a favourite tag just by pressing something like 'right, down, down, enter' on a fresh search page.
In the next week or so, I will add 'add to/remove from favourites' menu items for regular tag right-click menus (for quicker favourite editing), and some other little bells and whistles (like parent support in manage tags).
If this layout and workflow works out, I expect to do more here in future. I could add lists for popular tags, system predicates like 'size<8MB', and even whole named searches like 'short inbox videos' or 'last week's gifs'.
drag export from media viewer
I have added a new icon to the top hover window of the media viewer--a green arrow pointing right, added to the top-right of the window--that, if dragged from (i.e. just click the button and then drag out of it), will start a file export drag for the current file, the same as if you had dragged the thumbnail. So, if you are in the media viewer and want to upload the file somewhere via your web browser, you can now do it real quick.
import/export siblings and parents
This is for advanced users and may be buggy.
You can now import and export tag pairs to and from the tag siblings and parents dialogs! You can do it via clipboard or .txt files, with the format being a flat newline-separated taglist (so the pairs a->b, b->c would flatten in the .txt document to four lines abbc, and vice versa). You can also import in a 'add only' way, which will only ever add new pairs, rather than trying to petition or delete existing conflicts (as the code would do if you entered those same pairs manually in the text boxes).
I have tested this a bunch, but the underlying logic here is still a bit of a mess, so please do some test runs before you start importing or exporting ten thousand rows and let me know if you run into any trouble.
quick and dirty duplicate processing
I've added some ugly 'just set these thumbs as alternates/same/not dupes' buttons to the duplicate processing page, designed to be used with the 'show me some random pairs' button. It is a quick and dirty way of dealing with some common groups.
The database structure here is still inefficient for larger groups (like twenty alternates of the same file), but I have spent a bit of time thinking about the next step here and may try to slide in some updates for the most common problems in the coming weeks.
full list
wrote system:known url to find files that have--or do not have--certain types of urls. it works but is still a little slow--I can optimise it later!
added exact match, domain, regex, and url class search types for system:known url
added a button to the top media viewer hover window that will start a file export drag and drop event if dragged from
moved the autocomplete dropdown results list down into a paged notebook
wrote a new 'favourites' page tab for the autocomplete dropdown results
hitting left or right arrow keys on an empty text input will move between the results tabs
hitting arrow up/down/page up/down/home/page or passing mouse scroll events will now go to the current selected page
typing regular search text into the input will automatically return the current page to the search results list
moved the 'tag suggestions' part of the 'tags' options page to a new page
added 'tag favourites' to the 'tags' options page to edit which tags show in this new tab
added import/export buttons to the tag siblings and parents dialogs. they'll export to clipboard or .txt file, and import from the same with an additional option to add_only (i.e. to not delete/petition conflicts with the existing list)
added some quick-and-dirty 'set as alternates/same/notdupes' buttons to the duplicate filter, which will quickly apply that status to the dupes and show some more dupes
sped up db loading time of tag siblings and parents significantly
added a short delay check to tag siblings/parents regeneration so rapid regenerations (such as when processing certain admin-side petitions) can be merged
fixed an issue where similar_to searches could return results not in the current file domain
fixed some spinctrls that were sizing to thin
fixed a bug in the manage server services dialog that was incorrectly dealing with port conflicts on edit service dialog ok
added a clientside and serverside assertion to test that all the services on a serverside modify services call have unique ports
fixed an issue where hydrus network services without access keys would sometimes try to sync their accounts (this was messing up some admin server setup)
fixed some misc dialog window structure
messed around a little with how the autocomplete dropdown hides and shows when in float mode--I _think_ it will now be less flickery and will otherwise position itself and receieve focus better
converted the 'export files' dialog to the new sizing system and also made it non-modal (i.e. you can now interact with the rest of the program while it is open)
wrote a more rigorous force-fit-all-tlws command to the debug menu
misc fixes
misc refactoring
next week
I want to focus on the downloader overhaul, which is coming to the final big phase. Making the page of images downloader more intelligent is the first thing, and then actually getting going on the big gallery update, which we are basically ready to start.
In the run up to v300, I've been thinking about and talking with some users about how we got here. It is odd to think that I have been hammering at this thing for six or seven years, as it seems like the time has disappeared. Making hydrus is not easy, but I get a lot out of working on it, and I really appreciate your feedback and support--thank you. I am still in an ok situation IRL, so I hope to keep like this and just push steadily up to v350 and beyond.
2 notes · View notes