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
5026
Quote from Arantor on June 1st, 2012, 12:18 AM
Now, anyone that can name where I got that quote without Google or IMDb wins a free internet.
Titanic?
The Poseidon Adventure?
Or maybe The Crying Game?
:lol:
5027
I also dropped Spanish as soon as I could to focus on English ;)

Do you think you've lost your French due to not visiting France? Just watch French movies and be done with it :P
There's this craze about The Intouchables these days... Not a bad movie (has some of my favorite actors), but definitely not the best of its kind.

Anyway.... Gotta go to sleep.
5028
At least, you can say Le Big Mac! And "Royal Cheese"[1] stands for quarter-pounder with cheese! French isn't that hard :P
 1. And not "Royale with Cheese", unlike what Tarantino wants you to believe!
5029
The Pub / Re: The Cookie Law (in the UK at least)
« on June 1st, 2012, 12:08 AM »
Quote from feline on May 31st, 2012, 08:35 PM
That's right .. I have a couple of years the PortaMx corp. established, with which I earn my money. If I now investing a lot of time into other projects (such as Wedge), I lose a lot of money.
Programming work is not the same as suggesting improvements or reporting bugs etc. We never offered any developer positions to anyone (so far), and no one has invested (or had to invest, thankfully!) more than a quarter of the time we spent on Wedge in the end.
Quote
So I offered to be involved to 50% on Wedge, so as to achieve a balance. That's probably not too objectionable ...
That would assume that we make, or plan to make, money from Wedge...
But it was never in our plans, either. (And I'm starting to regret that, after two years of hard work on the project...! :^^;:)
5030
I have no idea how you guys can put up with learning tens of thousands of foreign words, and in the case of French, learn their *gender* as well... (Just like having to learn hanzi/kanji in addition to vocabulary in Chinese, Japanese etc...)
Do you know of Jane Birkin? She speaks a perfect fluent French, but is well known for always choosing the wrong gender much of the time :lol:
5031
Archived fixes / Re: Thoughts not display @ on initial post
« on May 31st, 2012, 11:59 PM »
Yup, I noticed that...
Actually, I miss the days when the @ names were all shown in gray... It made the overall look a bit less confusing. (But less logical as well.)

But in the end, all I can say is that it shouldn't be behaving that way. AFAIK the returned Ajax thought goes through output buffers so it should be transforming any member links to use their group color...
5032
Archived fixes / Re: sb refresh does not update scrollbar
« on May 31st, 2012, 11:53 PM »
Nope... Not that I found any issues myself, though. (Known song.)
5033
Features / Re: New revs
« on May 31st, 2012, 11:50 PM »
rev 1603
(4 files, 3kb)

! Although it worked, the regex for matching media tags was a bit odd; rewrote it to ensure closing brackets inside quotes won't break anything. (Subs-Media.php)

! Fixed word wrapping in code blocks, except for my iPod where it's muuuuuch nicer not to have to bother scrolling manually. Have you ever tried that? Well it sucks. (index.css, index.iphone.css)

! Fixed 'remove nested quotes' when quote depth level is higher than 1. This one should work in all situations, and be more reliable than any proper recursive regex. (Post.php)
5034
Archived fixes / Re: Remove nested quotes is broken
« on May 31st, 2012, 11:49 PM »
This one seems to work fine...

Code: [Select]
if (!empty($settings['removeNestedQuotes']))
while (preg_match_all('~\[quote(.*?)]((?>[^[]|\[(?!/?quote))+)\[/quote]\n?~i', $form_message, $matches))
foreach ($matches[0] as $match)
$form_message = str_replace($match, '', $form_message);

It's not uber-optimized (if only because it does the replacement in X passes, with X = quote depth level), but at least it should be relatively safe with backtracking. I don't think it could lead to regex abuse. As I said above, I try to stay away from recursive regexes as much as possible these days, but it'd be great if you could do some quick benchmarking on heavy pyramids... (I don't think the performance difference will be noticeable if quote depth <= 1)
Posted: May 31st, 2012, 11:44 PM

:edit:

Code: [Select]
while (preg_match_all('~\[quote(.*?)](?>[^[]|\[(?!/?quote))*\[/quote]\n?~i', $form_message, $matches))

Should be a tiiiiny bit faster... (and take into account possible empty quotes.)
Posted: May 31st, 2012, 11:46 PM

And that.

Code: [Select]
while (preg_match_all('~\[quote(.*?)](?>[^[]|\[(?!/?quote))*\[/quote]\n?~i', $form_message, $matches))
$form_message = str_replace($matches[0], '', $form_message);

Funnier.
5035
Archived fixes / Re: Remove nested quotes is broken
« on May 31st, 2012, 11:28 PM »
Even weirder... I made a pyramid, and it doesn't fail at all. Everything works.
Posted: May 31st, 2012, 11:28 PM

Hmm, no, it removed too much actually. A bit.
Will fix asap.
5036
Archived fixes / Re: Remove nested quotes is broken
« on May 31st, 2012, 11:23 PM »
It's not possible in the first place, because the first level is already removed...

Oh, you mean, as if the feature was disabled, a quote pyramid was made, and then the feature was enable...?
5037
Archived fixes / Re: Remove nested quotes is broken
« on May 31st, 2012, 11:15 PM »
Enabled feature on my local install... Added two quotes with a comment in between... Hit quote on that post... Both quotes were removed correctly, and the comment was left in.
Doesn't seem broken to me..?
5038
I think it meant it should be "la" question ;)
5039
Archived fixes / Re: PM's say 2 responses.
« on May 31st, 2012, 10:37 PM »
Isn't this counted from your reply + your saved copy of the reply..?
So technically it's found twice in the DB...?
5040
Features / Re: New revs
« on May 31st, 2012, 08:22 PM »
rev 1602
(7 files, 4kb)

! Fixed ifnull() function (last-minute change that broke it... My nemesis.) (Class-CSS.php)

* Harmonized post buttons below textareas. (editor.css, index.rtl.css, Display.template.php, Media.template.php, PersonalMessage.template.php, Post.template.php)