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 - Nao
7096
Features / Selectbox
« on November 15th, 2011, 05:13 AM »
First things first.
I'm looking into the JumpTo object and I still don't get why it has the ability to show multiple boxes.
I mean, it's only used in two places in SMF and Wedge: Display, and MessageIndex. And in both cases -- only one per page.
Removing the related code removes a few bytes off each topic page (not a bad thing I'd say), and also removes about 20 bytes from the gzipped minified script file. I'm really, really not against that...

Can anyone think of any reason to keep the array of JumpTo objects...?
Right now, the only thing I could think of is turning the moderation selectbox into a jumpto, which isn't the case right now. I mean, you click 'Move to' and then it enables the selectbox next to it... But it's already filled in. I don't really see the point in having a JumpTo object if admins and moderators always have to load the complete board list on every page just for a feature they won't be using 99.9% of the time... :-/

Other than that, I'm still looking about select boxes and stuff...
I want to have the 'right' component for Wedge. Something between the lightness and simplicity of John's implementation, and the richness of jQuery plugins.
The main problem here is with accessibility, as per Pete's request (and mine, honestly.) The 'light' code doesn't allow for keyboard accessibility, for instance.

So, here are the 'few good ones'... They all support 'disabled', optgroups and such. And they're all MIT licensed or equivalent. Also, I haven't done a complete test case for all of these, so the pro/con list is incomplete. I'm just trying to sort it out myself and maybe some of you will be aware of a better selectbox component for Wedge..?
As a reminder: once this is settled, I'm planning to use select boxes in many places, including places where we don't currently have a select box. The only difference with a mini-menu is really the fact that it opens once you click the item...

http://labs.abeautifulsite.net/jquery-selectBox/
Pro: also does listboxes. Excellent keyboard accessibility.
Con: minified/gzipped size ~3000 bytes, position is fixed so if the parent div moves, this won't.

http://www.bulgaria-web-developers.com/projects/javascript/selectbox/
Pro: gzipped/minified size is ~2000 bytes
Con: keyboard accessibility is average at best. Doesn't close the box when clicking elsewhere (can be remedied easily I suppose...)

http://dl.dropbox.com/u/124192/websites/selectbox/index.html
Pro: Has clear support for HTML elements inside select boxes (I want that and will add it to whatever I use in the end). Allows to set small width for select line and large width for select box (i.e. they aren't linked), and does multi-line entries like I wanted, too. Also, keyboard accessibility is good...
Con: ...although it has a strange habit of closing the box when keeping the arrow keys pressed -- if you just press them, it'll switch to the next item all right, but if you keep the key pressed, once it triggers the message to 'repeat' the keystrokes automatically, the box closes. Doesn't handle right clicks on items and selecting text inside items (all of these should be disabled IMHO -- but I think none of the competition does that either.) Also, the size is the worst, at about ~3700 bytes gzipped and minified.

http://code.google.com/p/sexy-combo/
Pro: does a combo box...! It's pretty neat being able to type in what you want, and it'll automatically open the related elements in the list so that you can click them.
Con: size is ~4700 bytes so... Yikes!! And there isn't a demo available. But you can see a demo of UFD by following the link in the sidebar. It uses jQuery UI thought, so it's not something I'll be using...
Posted: November 14th, 2011, 04:32 PM

Bump.
7097
Off-topic / Re: Doctor Who
« on November 14th, 2011, 09:40 PM »
Let him do his job... I'd rather have two Docs than none ;)
7098
Off-topic / Re: Doctor Who
« on November 14th, 2011, 08:23 PM »
Pete, there's another topic waiting for you... :niark:
7099
Off-topic / Re: DEAR GOD NO
« on November 14th, 2011, 12:41 PM »
Well... We had it coming. He'd been very feeble in the last 3 weeks. Barely able to walk. He required constant care and stopped eating and drinking altogether a few days ago. It's a fine age for a dog. But it doesn't stop it from being heartbreaking. I miss my dirty old dog :( It's a very sad, sad atmosphere in my place today. So I don't wanna talk about it too much... And I'll be geeking away as much as I possibly can.
Quote
Good UK shows depends on your preferences.
I don't know... When it comes to sitcoms, I love Python, Red Dwarf, Smack the Pony, IT Crowd, Father Ted, Coupling (obviously), Goodness Gracious Me (that one was odd!), etc. And I hated things like The Fast Show, and err... Oh well that's pretty much all I hated. I'm not a big fan of AbFab but it makes me smile. As for 'regular' shows, I don't have anything in mind right now but I'm not a sucker for cheap-looking 'serious' fictions. (And yes, I did try to watch Doctor Who's Pyramids of Mars.. And stopped when I saw the ridiculous monsters. Oh my. Too bad I love all of these Doctors, because I have a serious problem with the rest of the show.)
As you already know, to me the best 'serious' British show is The Prisoner. And it doesn't look cheap. Well, except for the episode 'The General' with its supercomputer, but the episode has more important issues anyway.
I watched 'Mad Dogs', a recent show with my dear Life on Mars cast, and was a bit disappointed. It wasn't bad per se, but I just didn't find it too exciting.

Did you ever see that TV movie with Christopher Eccleston as a guy who thinks he's Jesus? I have this under the hand but I'm unsure whether it's any good.

The only on-the-air shows I'm watching currently are, whatever the country of origin: South Park (still in great shape), Being Erica (MY chick show. I own it. I wanna have its children now.), Misfits (the new guy is pretty fun), Once upon a time (mostly for the missus...), The Big Bang Theory (current season is an improvement), Merlin (season 3 sucked, season 4 rocks, don't ask), The Walking Dead (season 1 rocked, season 2 sucks but I still have hope), and Mawaru Penguindrum (I'm only starting but it's pretty good). That's about all... I'm waiting for Glee to be over before I start watching it. At least the mid-season break.
I just wanna find more things to watch on a weekly basis (current shows), and possibly on a daily basis (past shows.)
Quote
QI is always worth watching for comedy, with Stephen Fry and Alan Davies as regulars, and a whole host of random people as guests for silliness and Alan Davies losing each week.
'Losing'? It's a game? (QI is French for IQ so I'd naturally think that... :P)
Quote
Also, if you like the later series of Blackadder, they were partly written by Richard Curtis, who is also responsible for a couple of rather watchable rom-coms (Love Actually in particular), but also for The Vicar of Dibley.
Yeah I like Curtis a lot, Love Actually is not too bad (for a genre I'm not into, I think after you've seen Harry & Sally you can hardly watch anything else without thinking it doesn't compare), Weddings & Funerals was pretty good, I should watch The Boat that Rocks at some point... And of course I loved that Van Gogh episode eheh.
Quote
If you don't have an aversion to Dawn French, it is watchable enough.
I only know her through a couple of sketches she did with Saunders, notably the Doctor Who parody that wasn't particularly hilarious. I've heard of Dibley several times as it's supposedly one of the top shows ever but I'm not sure about the point..... I mean, is it funny or whatever, because the pitch isn't particularly exciting.

Plus, there are no subs available, which is pretty much a deal-breaker to me.
Heck, I've been waiting for some time to watch 'I, Claudius', and subtitles just came out for it... Unfortunately, the last two episodes are still missing subs so I'm waiting for someone to do them first... The only show I watch without subs is South Park, and that's only because I'm too eager to see the new episodes and I just can't wait for subs. :P
Quote
Other comedy to watch out for is Porridge, or if you're of a more 1970s vogue, Open All Hours.
I'm not much into old shows, although I'm also open to anything (Fawlty Towers is a classic -- heck, I should probably rewatch my DVD box for it. I think I haven't watched the bonus features. If there are any.)
Just not geared towards a particular decade (except for the current one.)
Open All Hours has subtitles available, and Porridge doesn't.
Quote
Ronnie Barker runs a small convenience store, with a vicious till, David Jason as the slightly hopeless assistant. Great in its day, maybe not so much now.
I remember seeing a short scene on YouTube or something. It was funny. Then again, I suppose the reason it was on YouTube is that this particular scene was considered funny.
Quote
Note I'm not suggesting Only Fools and Horses.
Only heard of it by name.
Quote
While it was great in its very original incarnation (David Jason as the rogue-ish dodgy dealing Derek 'Del Boy' Trotter, and Nicholas Lyndhurst as his dopey younger brother Rodney, it very quickly grew ever more ridiculous after both Del and Rodney end up meeting people and getting married.
I have no idea who these people are, though... As a reminder, I'm just one of those annoying Froggies, and we don't have the BBC in here ;)

I know Jason is a revered actor but I only saw him in the Discworld movies and, 'meh'. He was okay in Hogfather but I couldn't understand the point of him playing Rincewind later. Not only didn't he look the part at all, he was probably too old for it, and it just wasn't funny. Then again it's also a problem with the book...
Quote
Though if you watch the very last group of specials, you will understand why Amy Pond is a policewoman and Rory Williams is a Roman centurion. Yes, it is essentially a throw-back to that scene where Rodney and Cassandra are trying to sort out their marriage and try... dressing up for each other.
I wanna watch THAT :lol:
Quote
If drama is more your thing, I'd suggest Spooks (start from the start, though),
Only heard of it through it being the previous starring role of that Ashes to Ashes girl. And yes, thank you for reminding of this one -- I always thought I should give Spooks a try. It's been shown in France but dubbed only -- no thank you.
Never heard about Hustle and New Tricks until now -- I'll look into it, I like that kind of pitch. New Tricks, why not, later.
Oh wait, I just checked on Wikipedia -- both shows were shown in France. New Tricks I never heard of even with its French title, while Hustle I *did* hear of, but it was shown on a commercial channel so I just avoided it. Plus the French title sucked ("The VIP con-men" or something). Heck, I thought it was a French show...
Quote
If murder/mystery is your thing,
Not really, but I do appreciate a good Poirot or Holmes of course :) And Life on Mars/Ashes to Ashes. And David E. Kelley's shows. That's about all... Never watched CSI etc.
Quote
I'd suggest Jonathan Creek
...And yet another show I saw on my TV programme, without being aware it's British ;)
I like the pitch, too, I'll remember to give it a try next time I see it on TV.
Quote
Unlike most shows, the focus is on how the murder was done, as opposed to the usual formulas of who did it, or we know who did it, how does the detective figure it out.
Ah yes... There's a Japanese show, Detective Conan (in reference to Doyle), which absolutely loves closed room murders. I think I read about 28 volumes of the manga before I got sick of it, but I'd say I enjoyed at least 25 of it -- all murder cases where the genius kid/teen solves very smart mysteries. It's slimmed down to a level where the guest characters don't even matter anymore. It's all about the tricks themselves, most of the time. Apart from the annoying story clichés and character-design, it's a really good thing to read (or watch on TV) if you like these.
Quote
the ITV adaptations of Sherlock Holmes (starring Jeremy Brett as Holmes), Poirot (with David Suchet as Poirot),
Watched them all, loved them all. I can't decided who's the better actor between the two!
They're all available on DVD here. I'm only missing the TV movies for Holmes on DVD -- pretty much out of stock and there aren't suitable subtitles online either. Bah.
Quote
and/or Miss Marple (Joan Hickson as Miss Marple, not the later ones) - they're a bit older to find though.
I never delved into Marple because (1) I'm not sure about the whole concept, (2) I'm not sure about who the definitive Marple is, either.
Quote
If you're more into the CSI method of murder mystery rather than the detective using their brains,
Really, as I said above, I've never even watched a single second of any CSI show, eheh. Couldn't tell you whether I like it or not!
Quote
either Bones or Waking The Dead would be good watching.
My girl is a big fan of Bones. I'm not. I just watch bits of it occasionally because I miss my Angel.
Quote
That's about all I can think of for now at least.
Thank you very much for the suggestions :)
7100
Off-topic / Re: DEAR GOD NO
« on November 14th, 2011, 09:51 AM »
Wouldn't mind if you shared names of good uk shows. I'm always in for that. Eh, I never watched Blackadder until this year after all. And it's a well known show.

Plus it would change my mind... RIP Floppy, beloved dog, 1994-2011. :sob:
7101
Features: Theming / Re: WeCSS: the Wedge CSS parser
« on November 14th, 2011, 07:42 AM »
'final' means that related inherited classes will disregard this rule, which is only for the 'parent' to deal with.

'@remove' followed by a full line will scan the entire file (or set of files) for that line and remove it, allowing for easy removal of graphic files that might use space for nothing in an inherited skin.
It's not very practical, but it does its job.

'unextends?' (that is, in regex, 'unextend or unextends') means the ability to simply un-inherit a class from another...
i.e. .windowbg2 extends .windowbg, and if later in an inherited skin I say '.windowbg2 unextends .windowbg', it will cancel the previous request...
Although, as I said, I'm not sure it works. And it can probably get too complicated -- can I unextend .windowbg from .windowbg3 if .windowbg3 only extends .windowbg2, without unextending .windowbg from .windowbg2 as well? See, that kind of crap...
Thankfully, an inherited skin will always know what its parent is about, and what code it holds, so it should be easy to simply redefine the rules you don't like. But, ideally, unextends should be cool if it was thoroughly tested. Which it hasn't been.
7102
Features: Theming / Re: WeCSS: the Wedge CSS parser
« on November 14th, 2011, 06:48 AM »
It isn't implemented. My algorithm was flawed so I postponed it. Instead I implemented a remove keyword for graphic elements. Should be in Warm.
7103
Off-topic / Re: DEAR GOD NO
« on November 14th, 2011, 06:46 AM »
Never heard of anything in your post... :-/
7104
Off-topic / Re: DEAR GOD NO
« on November 13th, 2011, 10:36 PM »
That wouldn't surprise me a bit.
7105
Features / Re: Re: Recents posts as formerly on the board index
« on November 13th, 2011, 10:35 PM »
Yup, noticed that.

Okay, I'm posting my version of the code... It's not particularly better or anything, it just matches the coding guidelines for Wedge.
However I probably won't be using it as is in the future. I'm still considering options, like taking a larger library and reducing its size, etc.

Code: [Select]
function we_selectbox()
{
var that = $(this), id = that.attr('id'), title = $('option:selected', this).val() != '' ? $('option:selected', this).text() : that.attr('title');
that
.hide()
.after('<ul class="menu"><li id="' + id + '_li"><h4 class="hove"><a>' + title + '</a></h4><ul id="' + id + '_ul" style="visibility:visible;border-radius:0;opacity:1;display:none"></ul></li></ul>')
.change(function () { $(this).next().text($('option:selected', this).text()); })
.children('option').each(function () {
var here = $(this), txt = here.text();
$('#' + id + '_ul').append(txt == '-' ? '<li class="separator"><a><hr></a></li>' : '<li id="' + here.val() + '"><a>' + txt + '</a></li>');
});
$('#' + id + '_li').click(function () { $('#' + id + '_ul').show(); });
$(document).mousedown(function () { $('#' + id + '_ul').hide(); });
$('#' + id + '_ul').children('li').each(function () {
$(this)
.bind('mouseenter focus mouseleave blur', function () { $(this).toggleClass('hove'); })
.mousedown(function () {
$(this).parent().children('li').removeClass('active');
$(this).addClass('active');
$('#' + id).val($(this).attr('id'));
});
});
};

$('select').each(we_selectbox);
7106
Off-topic / Re: DEAR GOD NO
« on November 13th, 2011, 09:06 PM »
Hey, welcome back ;)

She sucked in series 7, was bearable (and occasionally funny) in series 8, and was actually pretty good in her only scene in the Dave special. (Probably because she only had one scene, really...)
That still doesn't make her a full member of the crew for me... Her chemistry with Lister was non-existent (because she was so much asexual when it came to him, or anyone else for that matter) and it was a sad mistake -- heck, the original Kochanski was better in that respect.

Anyway -- I'm personally waiting for that new series. I think I'll enjoy it, because I'll be mainly happy to see the characters in action again, and I have very low expectations for it because after all this time, we know Doug Naylor isn't a great sitcom writer and bothers too much about the storyline and not enough about character interaction and situation gags. Plus, the special wasn't that funny either. But it was probably due to not being shot in front of an audience -- even adding subtle canned laughter isn't going to cut it in this situation.
7107
Features / Re: Re: Recents posts as formerly on the board index
« on November 13th, 2011, 08:57 PM »
Quote from live627 on November 13th, 2011, 05:33 PM
Quote from Nao on November 13th, 2011, 11:22 AM
Had a look. It's funny how you reused the main menu styles! I made it a bit shorter and it was already quite short. Needs more features but it seems to be a good start thanks.
You're welcome. :) (And yes, I love the menu design - probably gets my vote for favorite front-end  component!)
Thanks ;) I was never too sure about it because it didn't get a lot of feedback (the design itself, not the code)...
However, while the main menu css is fine for short select boxes, how about a select box with hundreds of items? It will definitely require a scrollbar... And for this, the main menu doesn't have a ready-made answer. That would require dropping the rounded corners, to begin with.
7108
Features / Re: New revs
« on November 13th, 2011, 08:55 PM »
rev 1164
(7 files, 2kb)

! The thoughts page in profile areas was only visible by their owner. (Profile.php)

! Fixed sidebar behavior in iPad devices. (skin.xml, Warm/skin.xml, Wuthering/skin.xml)

+ Added a $txt['menu_new'] string to account for a short 'New' string to be shown in top-level menus. While it isn't a problem in English, it may be in other languages. (Subs.php, index.language.php)
7109
It's Ultimate Profile with some custom code like the ability to hide selected contacts (eg you want to follow someone but don't want it to be known.)
7110
Wedge will have asynchronous friend lists like here.
When I get to it.