Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Arantor
5701
Off-topic / Re: Doctor Who
« on October 27th, 2011, 09:25 AM »
(click to show/hide)
No, the Teselecta was always part of the fixed time in history, that's the beauty of it. What happened at Lake Silencio always happened. Just that we didn't know the full story until he told us. Even the first time we saw it in The Impossible Astronaut, that was the Teselecta. The fixed point in time was everyone thinking they'd killed the Doctor but it actually being the Teselecta.

And yup, the original stuff is awesome; I grew up on re-runs of Pertwee and (Tom) Baker :D Oddly enough, the Hartnell/Troughton era isn't actually shown all that often here in the UK even on the 'Dave' channel (which is basically a channel born out of buying up broadcast rights to most of the BBC's back catalogue)

As far as the Christmas special goes, I still want to see the bit mentioned at the end of The Big Bang - where he answers the phone and it's a king or queen on board the Oriental Express, in space, with an Egyptian Goddess on the loose. I'm hoping that's going to be this year's Christmas special (after all, we've had an Agatha Christie based episode, we've also had something on board the starship Titanic, so something on board a space-bound Oriental Express is not out of the question)
5702
The Pub / Adding menu icons
« on October 27th, 2011, 12:42 AM »
Hmm, I just tried to do this today, and while I applaud the elegance of the given setup, it's a pain for plugins to have to do, not to mention inefficient.

To put it into perspective, right now when I add the menu icon, I have to add the following line of code as well to add the class, because there's no easier way of doing it, not even a prototype. While it may be efficient to just extend m_home in the CSS, there's actually no way to access that from the menu code, not even a way to specify a custom side-along class (e.g. to specify .m_home and then override the background property)

Code: [Select]
add_css('
.m_myicon { float: left; width: 16px; height: 16px; padding: 0; background: url("' . $context['plugins_url']['Arantor:myplugin'] . '/myicon.png") no-repeat 0 0; margin:4px 4px 0 2px; }');

I can't help but think we can do this better by crafting a general icon class and adding the specific item to it as well which means the new menu icon styling only has to override background for that icon.

If there's another way of doing it, I'm all ears, but I didn't find one in the menu template and nothing better occurs to me right now...
Posted: October 27th, 2011, 12:33 AM

Also note that this will be more important if themes decide to restyle the menu, because if they restyle it without adjusting the markup, the style might be totally off. At least if the general style is inheritable, the worst that can happen is the icon is the wrong size, rather than being totally broken.
5703
Off-topic / Re: New coding music :D
« on October 26th, 2011, 08:17 PM »
I find coding to be somewhere between art and science, so having a rhythm to work with stimulates my brain through the tedious bits and counterpoints the exciting, daring artistic bits. Or something, anyway.
5704
The Pub / [Archive] Re: Logo Madness
« on October 26th, 2011, 04:10 PM »
Quote
Not that it matters MUCH...
It's no less important, really, than some of the hooks I've added today. Designing a logo is both art and science, because it reflects your creativity but it also indicates things to those observing it, and that early impression can be important too.
5705
Off-topic / Re: Post count fever
« on October 26th, 2011, 04:07 PM »
Quote
I still think you'll have it... Just look at the plugin discussions.
The plugin manager is undeniably my 'baby', and it reflects in the amount of passion that I have for it, that I'm not only working on it, working on all its mechanics but also in developing plugins for it, and that as working as it is, it's still very much a work in progress.
Quote
I'm in pretty much none of them, because it's way out of my league. Or I just simply fear having to deal with it later...
Well, plugins had to be dealt with sometime, and it was at the stage where I couldn't let it pass any longer without doing something to it, so I started really figuring out the mechanics of it - and after that, it was simply the period of time it took to solve the underlying issues around the plugin manager's behaviour. I'm still wrangling with some of it but the core system works rather well.

I did get the feeling that you weren't that interested in writing plugins - and that's cool. I like writing plugins because it means that stuff I wouldn't put in the core, I can put in plugins, and it means that functionality can be developed in relative isolation, rather than having things that interact with each other like most core stuff.
Quote
Perhaps I started Wedge because I didn't want to have to bother with making mods any longer...
Heheh, well, part of the appeal for me was the chance to really make something of the package manager in some fashion. It isn't a bad tool, but it needed some serious love and attention.
Quote
I'm still stuck with AeMe too, BTW. I've reached a point where I'm starting to think it should stay the way it is, and I'll (or you'll) merge the attachment and avatar systems into AeMe once we reach 1.1 or something, or possibly earlier but not before the demo...
Hmm, I understand the reticence, not least because there is simply so much that interacts with it, it has so many consequences, and most of them have to not only be gotten right, but to avoid making a hash of it, most of them have to be figured out in advance.

I don't have a problem with releasing the demo as it is publicly (but not releasing a downloadable demo yet, there's still stuff too broken, like board access not having a working UI) and doing that after the demo but the longer it's left (and in particular after 1.0), the harder it's going to be to do.

Much as I stated with the dropping-bbc-in-favour-of-WYSIWYG, it's something that if we're going to do, we pretty much have to do it now rather than later.

The converter can be fixed up after the event. The core support, though, can't - because if it's left past 1.0, it's not only importing but upgrading that's going to be problematic - and that's a scenario I don't want to go down if at all possible, just because of the nightmare scenario it causes generally. Far better that we put the core in the core and have the converter deal with - measure twice, cut once, rather than measure three or four times and cut twice.
5706
Off-topic / Re: New coding music :D
« on October 26th, 2011, 03:59 PM »
I like a TV show and a film that's interesting to watch, reasonably well paced (I have a lowish boredom factor when it comes to passive entertainment), and is sufficiently deep that there's something for my brain to dig into. That's why, for example, watching DW season 4 was interesting but nowhere near the levels of excitement I had watching seasons 5 and 6, because there's more going on in the background for me to chew over.

Music... really, the music in TV and film doesn't tend to grab me unless it's *seriously memorable* or *seriously epic*. I don't own many film soundtracks, for example.[1] It's mostly because they don't do a lot for me, as it were. If the dialogue's good, that's going to keep my attention more than the music is.

Musically I tend to favour rock, not-so-heavy metal and stuff like that. My playlist is primarily Queen, Meat Loaf, Iron Maiden, Nightwish and Murray Gold(!) with interludes from Bon Jovi, ABBA(!!), David Bowie, Aerosmith and stuff like that, plus whatever I happen to find of interest on YouTube.
 1. To put in perspective, the film soundtracks I own are: Indiana Jones & The Last Crusade, Flash Gordon, the three Lord of the Rings soundtrack albums, Repo! The Genetic Opera, Labyrinth, and Clerks II. I have almost more computer game soundtracks than I do film soundtracks. That said, I do have the soundtracks from the first 5 seasons of Doctor Who, because somehow that's actually more memorable to me.
5707
Features / Re: New revs
« on October 26th, 2011, 03:51 PM »
(5 modified, 13KB)

Revision: 1134
Author: arantor
Date: 14:51:19, 26 October 2011
Message:
! A bit more of the plugin stuff for the repository handling. It's still not finished either but hey, might as well commit it anyway. Also, be sure to lock out the plugin upload/download if gzinflate is not available. (ManagePlugins.php, ManagePlugins.english.php)
! New hook for CAPTCHA handling, if a plugin wants to extend the existing CAPTCHA framework. (Subs-Captcha.php, ManagePlugins.php)
! New hook for deleting members in bulk. It doesn't replace delete_member, because depending on what you're doing, it may not make a lot of difference whether you get them one at a time or in bulk. But there is a benefit to having the bulk query - for if you do actually do big deletes that hit lots of people at once - and unlike delete_member, delete_member_multiple can also rewrite the delete list if needed (e.g. to protect against certain users being removed for whatever reason. Use with caution!) Also note the delete_member hook itself has changed, to provide both the user id and name, not just user id. (Subs-Members.php, ManagePlugins.php)
! New hooks for Who's Online. One extends the list of actions that have to have permission in order to be visible, the other provides the entire dataset to hooks. While it might be practical under some circumstances to offer per-entry items to a hook, if there's going to be a query to get data (e.g. much like there is with topics, you want to be sifting that out before querying) (Who.php, ManagePlugins.php)
----
Modified : /trunk/Sources/ManagePlugins.php
Modified : /trunk/Sources/Subs-Captcha.php
Modified : /trunk/Sources/Subs-Members.php
Modified : /trunk/Sources/Who.php
Modified : /trunk/Themes/default/languages/ManagePlugins.english.php
5708
The Pub / [Archive] Re: Logo Madness
« on October 26th, 2011, 03:40 PM »
Quote
launching an icon editor to make the favicon
GIMP can save ico files :P

I have to admit I didn't notice the post had been updated, though I'm actually liking all the font combinations - they all work, with the one exception of the brown/blue colour pairing with the brown/green logo, that doesn't work so well, but all the fonts themselves do!
5709
Off-topic / Re: New coding music :D
« on October 26th, 2011, 03:00 PM »
I have to admit, Japanese music hasn't ever really been my thing; I'm not an anime fan though I suspect it's because I've just never found quite the right material to introduce me to the genre properly, but my tastes are pretty specific for things I really get into.

Another one that's quite good for coding, daft as it sounds is:

Why is the Rum Gone? - Remix
5710
Off-topic / Re: Post count fever
« on October 26th, 2011, 02:58 PM »
Quote from Nao on October 12th, 2011, 03:45 PM
Hey you're only 190 posts away from my own count ;)

The 7500 mark will be for you, in the end!
I'm currently 120 or so posts off, but I've got to make 200 posts before you make 80 if I want the 7500 title. If we were offering general support at this point, I pretty could pull that off without too much hassle. But right now, not so easy :P
5711
The Pub / [Archive] Re: Logo Madness
« on October 26th, 2011, 02:56 PM »
So the small logo was updated in the main files - perhaps the favicon needs updating as well?
5712
Off-topic / Re: Form repopulation
« on October 26th, 2011, 11:02 AM »
Yeah, that approach is probably for the best; there is only so much safety-net you can string out under users...
5713
Off-topic / Re: Talk about double standards
« on October 26th, 2011, 11:01 AM »
I've covered myself by putting in a little disclaimer as to the basis on which it is used. Unlike the original x-bitmap file, I'm using PNGs with the content in. I'm kind of hoping that someone points it out so I can show them where the GPL allows me to do exactly what I'm doing.
5714
Plugins / Re: Using permissions in plugins
« on October 26th, 2011, 10:42 AM »
And yeah, that's what I suspected you were getting at. Just that for some things right now that isn't practical. But it does make for interesting thoughts about how some things should work.
5715
Off-topic / Re: Form repopulation
« on October 26th, 2011, 10:41 AM »
Sure it's possible. How rugged it'll be is another matter entirely.

In recent browsers, there is the notion of localStorage, a browser-side storage area that is bigger than cookies, not shared with the server unless JS instructs it to be (via normal HTTP requests etc). I won't get into the details of implementing that part, since it's not like there aren't tutorials throughout the web on the different browser implementations including some mini libraries that abstract that stuff away.

The real problem that you need to solve is the mechanism by which you're triggering a 'save' to be made and when to clear that save, as it were.

There are two principle ways of triggering a save, you can either do it from a JavaScript setInterval call, which will run every x seconds and you pass a function to it to indicate what it should do every x seconds. It's pretty trivial at that point to scrape the elements on the page and dump them into a localStorage container.

Off hand I'm not sure how you'd trigger firing the reload-from-localStorage when on the next page, perhaps run a setInterval again, see if the form's empty and whether there's anything in localStorage.

As for pruning, in the 'thank you for submitting' page or whatever screen appears after saving a ticket, just insert a line to clear localStorage.



There are two other solutions that come to mind.

1. Use a browser that doesn't have this problem. I don't seem to have any trouble in Chrome with navigating back/forward on pages with forms in.

2. Add an event to the onBeforeUnload handler, which checks to see if there's any content in the page and warns users about leaving the page. It need only be as complex as:

Code: [Select]
<script>
window.onbeforeunload = function beforeUnload()
{
  return (document.getElementById('my_textarea').innerHTML == '') || confirm('If you leave this page, your changes will be lost.');
}
</script>

Of course that relies on MantisBT not putting any other events in onbeforeunload (if so you'll have to do more complex things!) and expand the checks to anything else you care to use, but the principle is sound.