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
2656
Off-topic / Re: Thoughts from Jeff Atwood
« on August 3rd, 2013, 12:27 AM »
Oh... There's a character in Stephen King's The Stand, who's a southerner retard with an accent, and he keeps saying 'm-o-o-n spells (something)', because he can't read. Anyway...
2657
Off-topic / Re: Thoughts from Jeff Atwood
« on August 3rd, 2013, 12:11 AM »
Quote from live627 on August 3rd, 2013, 12:08 AM
Quote from Nao on August 2nd, 2013, 08:02 PM
That's 'cuz you' sma'ter than the 'est o' us 'ednecks! :lol:
Don't embarrass yourself.
M-O-O-N spells embarrassment! :angel:
2658
Features / Re: New revs
« on August 3rd, 2013, 12:01 AM »
rev 2203 -- a quick one for the night...
(1 file, 1kb -- no, it's not a one-liner! Close enough, though!)

! IconList was broken in soft-merge mode. Also optimized a few lines, always feels good to use that one() function whenever I can..! (topic.js)
2659
Features / Re: New revs
« on August 2nd, 2013, 10:16 PM »
rev 2202 -- time for some bug fixing, man!
(2 files, 3kb)

! A beautiful bug in Wess... A year ago, rev 1667, I removed some pass-by-reference elements, and didn't realize that one of them needed to be there. As a result, it created situations where some selectors were mentioned twice. It probably wasn't very costly once gzipped, but it was still quite nasty, so here we go, a fix. (Class-CSS.php)

! Chrome 29+ would still add some prefixes to flexbox properties, even though I thought I'd unprefixed them. (Class-CSS.php)

! Cleaned up createPost topic creation query, and (hopefully) fixed a situation where it would reject the privacy value; a big woops. (Subs-Post.php)
2660
Off-topic / Re: Thoughts from Jeff Atwood
« on August 2nd, 2013, 08:02 PM »
That's 'cuz you' sma'ter than the 'est o' us 'ednecks! :lol:
2661
Off-topic / Re: Thoughts from Jeff Atwood
« on August 2nd, 2013, 06:38 PM »
Oh.. That!
Yeah, I also often find better answers way lower in the page, but I didn't think it had any impact on anyone, except for making these answers harder to find...?

Most of the time, the 'accepted' answer is the best one, and if it works for me, then great. But if it doesn't, I'll go deeper into the thread and eventually find the right one. No worries, then...
2662
Bug reports / Re: Periodic notifications don't seem to work
« on August 2nd, 2013, 06:36 PM »
I had a quick look, and to be honest with you, I'm not exactly sure where the thing goes wrong... getEmail is a Notifier method, not a Notification one, but then as I said before, Notifiers in general are somehow quite unclear to me, and I tend to easily forget the difference, so... Maybe Dragooon, or someone else, can fix this for me..? :^^;:
2663
Off-topic / Re: Thoughts from Jeff Atwood
« on August 2nd, 2013, 06:15 PM »
Such as..?
2664
Features / Re: New revs
« on August 2nd, 2013, 04:40 PM »
rev 2201 -- leftovers.
(5 files +1-1, 4kb)

! And of course, I forgot to commit Subs-Cache in the previous rev... Happens all the time, with my last-minute changes. (Subs-Cache.php)

* Translation. (Search.french.php)

* Renamed jquery.mjs.nestedSortable.js (gesundheit!) to nested-sortable.js. (ManageBoards.php, nested-sortable.js)

* Inline JS clean-up. (ManageBoards.template.php)

* Spacinazi. (ManageBoards.template.php)

* Commenazi. To be precise, the comment was saying the opposite of what it meant... Also, a personal note. The no_strip_domain context variable is equivalent to a hack I wrote months ago for the sendmail function, but never committed, and eventually rewrote with the new helper function prettify_url(). Technically speaking, whenever outputing raw XML or HTML that doesn't require any post-processing but pretty URLs, it's best to use prettify_url() and skip obExit() entirely, but it also means that macros aren't replaced, things like that, so... Maybe I'm just being too bitchy about this, and as a result I decided to keep no_strip_domain in place, and advienne que pourra, as we say on Mars. (Subs-Template.php)
2665
Features / Re: New revs
« on August 2nd, 2013, 04:18 PM »
rev 2200 -- this is \x01 complicated commit, my <head> is about to explode().
(10 files, 7kb)

* Replaced a few single-char str_replace calls with faster strtr's and some chr() with equivalent \x codes, could do more, but I'm not bothering. (Class-CSS.php, Class-System.php, QueryString.php, Subs.php, Subs-Cache.php, Subs-Template.php)

* Replaced a few create_function calls with faster hardcoded functions, whatever. Also, if parse_bbc's replacement is a failure, show it in italics, to point out there's a problem with it; I think it's for the best. (Class-System, Aeva-Embed.php, Subs-BBC.php)

* strpad() is a strange name for a function that converts a string to its unicode number... Uh? (Class-String.php)

! Removed brackets from a preg_replace. I think that one was a bug... $matches[1] would reach the outer brackets, not the inner ones. (ManageMaintenance.php)

! Because I forgot to account for them, using a | or || inside brackets in a we::analyze string, while allowed by my specs, would result in crossing the streams. Never cross the streams, it's bad. Okay, now you can use them. I think. (Class-System.php)

* Transformed another couple of preg_replace evals into callbacks; there are plenty left to do, though, in the following files: Class-CSS, Class-Editor, Subs-Media, Modlog, Post, and Subs-Cache. (QueryString.php, Subs-PrettyUrls.php)

@ Well, just like Pete said... These things are pretty fragile, and they need further testing; I've triple-checked them when committing, though, so hopefully any problems will be down to syntax errors, rather than logic oversights.

@ Note to self: I fixed \x0f\x10 to return "' in Subs-Cache, rather than '', because it seemed to make more sense. However, it may be a workaround of mine rather than a bug, so we'll have to be careful whether this breaks $txt handling in JS files, or if the really nothing was broken before is that I never used any strings with problematic characters in them.
2666
Archived fixes / Re: 'Half' Smilies
« on August 2nd, 2013, 12:46 PM »
Sorry, was in bed by the time this was posted...

I didn't think twice about this 'bug', because it simply required a hard refresh; I could have avoided that by forcing a change of ID in the smiley file, but... I had other things on my mind.
2667
Features / Re: New revs
« on August 1st, 2013, 09:29 PM »
rev 2197
(3 files, 1kb)

! Soft-merging broke un-ignore links on ignored posts. (Display.template.php)

! A matter of logic... The generic smiley CSS definition should be in the same file as the additional smiley definitions, as if the file fails loading, at least you won't get any awkward styling overrides. (Subs-Cache.php, sections.css)
2668
Features / Re: New revs
« on August 1st, 2013, 09:22 PM »
rev 2196
(3 files, 2kb)

! Soft-merging broke un-ignore links on ignored posts. (Display.template.php)

! Fixed smileys showing as text in notification previews, when viewed from a page which had no smileys in the first place. Please help me find other situations where this could occur. (Notifications.php)

! ..Such as in new thoughts. (Thoughts.template.php)

! Also fixed smileys not showing up on thought threads' master thought, whether using Ajax or not... Really, it was just an unrelated bug. (Thoughts.php)
2669
Archived fixes / Re: Tooltips for
« on August 1st, 2013, 07:53 PM »
Then we could replace with a name-free equivalent... "2 people liked this." that way, everybody's happy I guess!
We can even do it in js, eheh....
2670
Archived fixes / Re: Tooltips for
« on August 1st, 2013, 07:22 PM »
Quote from Arantor on August 1st, 2013, 05:37 AM
I don't even use the tooltip any more... before I remove it I'd like some more comments about it.
Tooltip in likes? Considering there's a color clue indicating whether you've 'voted' or not, I don't think it's that useful these days, indeed.
However, you may want to keep it for newbies... But really, it doesn't matter that much.