carlfoxmarten: (Default)
So, that Link Tags system I'm in the process of writing is starting to show a bunch of bugs, and seemingly at random to boot!

Currently, if you include all lines in the source code (comments included), the whole script weighs in at around 1250 lines of code.

Up until now, I've been putting the stuff that manipulates the database directly at the top of the file, the stuff that reformats the stuff taken from the database into stuff that can be thrown at the browser in the middle, and the logic that browsers interact with directly at the bottom.

I think I need to start breaking it up into modules so I can keep better records of which is supposed to do what.
Three ought to do it, though I'd have to figure out how to use modules in PHP...

Today's issue was that it started to choke on labels, links that had names, but no descriptions or URLs.
I haven't figured out what went wrong yet, but I need to go to bed soon, so I'll probably fix it some time tomorrow.
carlfoxmarten: (Default)
I've often found it annoying when I'm reading a webcomic strip's archives and trying to keep my place.
Most of the time, I keep a bookmark updated with my current place, but that has the problem of being tied to that particular computer.
(yes, I know there are ways to synchronize bookmarks between browsers and computers, but I'm a geek, I like doing things myself)

So what I've done is added the capacity to save temporary links to given sites based on pattern-matching the URLs in my new link-tagging system.
"All" I have to do is go into each entry that points to a webcomic and tell it what pattern the archive links are in, then I use a very simple bookmarklet that sends the current URL to my page and it'll figure out which it's for and update the relevant link!

Once it's set up, it's very easy to save quick links from webcomics archives.

Plus, it was a fairly easy feature to add, and it'll be so useful for me.
(it took me about an hour, as I'm a little rusty on my PHP and Sqlite coding)

If anybody's interested in seeing how the link-tagging system works, ask and you might get a link to it.
(read-only, of course)

Now all I need to do is add entries for all the webcomics I read and I'll be all set!
Which is, unfortunately, the only really tedious part...

Profile

carlfoxmarten: (Default)
Carl Foxmarten

August 2023

S M T W T F S
  12 345
6789101112
13141516171819
20212223242526
2728293031  

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 4th, 2025 10:42 am
Powered by Dreamwidth Studios