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
1126
Features / Re: Language revs
« on March 16th, 2014, 10:50 PM »
[Commit revision a79f025]
Author: Nao (Signed-off)
Date: Sun, 16 Mar 2014 22:49:55 +0100
Stats: 7 files changed; +0 (insertion), -97 (deletions)

  • Removed smiley and avatar path strings. (Admin, ManageSmileys)
  • ManageSmileys UK file was needlessly reproducing all strings from the US version. (ManageSmileys.english-uk.php)
1127
Features / Re: New revs
« on March 16th, 2014, 10:50 PM »
[Commit revision e340092]
Author: Nao
Date: Sun, 16 Mar 2014 22:10:29 +0100
Stats: 1 file changed; +1 (insertion), -1 (deletion)

  • Typo in the folder check code. Honestly, I have no idea why it worked so far... (index.php)

[Commit revision 0dd259e]
Author: Nao
Date: Sun, 16 Mar 2014 22:24:54 +0100
Stats: 1 file changed; +64 (insertions), -60 (deletions)

  • Don't load login & register-related CSS if you're logged in. Because you'll never get to use it anyway. Duh. (sections.css)

[Commit revision 303eba2]
Author: Nao
Date: Sun, 16 Mar 2014 22:28:10 +0100
Stats: 1 file changed; +3 (insertions), -3 (deletions)

  • Hmm, nope! Actually, the vv_special class has nothing to do with registration, and should be kept out of it altogether. (sections.css)

[Commit revision 690f5b5]
Author: Nao
Date: Sun, 16 Mar 2014 22:43:54 +0100
Stats: 7 files changed; +42 (insertions), -68 (deletions)

  • Removed avatar_dir/avatar_url (ManageAttachments.php, Profile-Modify.php, QueryString.php, Admin.english.php)
  • Removed smileys_dir/smileys_url (ManageSmileys.php, QueryString.php, Subs-Cache.php, ManageSmileys.english.php)
  • Unused global. (Profile-Modify.php)
  • This is the first phase of the hard-coding process for Wedge folders.

[Commit revision 232bf29]
Author: Nao
Date: Sun, 16 Mar 2014 22:44:31 +0100
Stats: 1 file changed; +1 (insertion), -1 (deletion)

  • And another unused global. (MessageIndex.template.php)

[Commit revision ba10fd6]
Author: Nao
Date: Sun, 16 Mar 2014 22:45:17 +0100
Stats: 1 file changed; +0 (insertion), -3 (deletions)

  • Outdated @remove command. (Wilde/extra.css)

[Commit revision cde49dd]
Author: Nao
Date: Sun, 16 Mar 2014 22:46:16 +0100
Stats: 1 file changed; +9 (insertions), -19 (deletions)

  • Did away with txt_* variables in the registration JavaScript. This saves a dozen gzipped bytes. Not much, but no reason to keep these variables either. (register.js)
1128
Features / Re: New revs
« on March 16th, 2014, 08:12 PM »
[Commit revision 4f321a2]
Author: Nao
Date: Sun, 16 Mar 2014 20:12:40 +0100
Stats: 4 files changed; +38 (insertions), -29 (deletions)

  • Split cleanRequest() into two different functions: one for path fixes, and one for query string fixes. Also changed the source code to run these two functions from within loadSettings, rather than index/SSI. (index.php, SSI.php, Load.php, QueryString.php)
1129
The Pub / Re: IE 11 and its funny developer tools...
« on March 16th, 2014, 08:08 PM »
My in-laws' PC is a virus nest... After 5 or 6 interventions of mine, I finally forbade them to use IE, installed Opera and Chrome, and explained them how to use them... They haven't looked back since. :cool:

Anyway, my IE 11 experience is really not encouraging, although after applying the user-agent tweak, IE11+IE8 renders pretty much like the 'real' IE8 does (in a XP VM.)

Yes, you can get rid of IE forever... But you can also, quite simply, never run it again... :^^;:
I know I have to, but that doesn't mean I have to do it every day, ah ah.
Firefox... I'd love to be in love in love with it, but it's always, systematically, been too slow for me. It has all the features I need, it's just horribly slow at starting up, and then switching between tabs, etc.

These days, in order of use, my browsers: Opera 20, Chrome 35, Chrome Stable, Firefox Aurora, Firefox Stable, and then, far behind, IE 7-11, and recently dropped from my test suite, IE6. (I'm lying, I actually still test in it... I just don't bother to fix it, I'm just curious to see how bad IE6 is at rendering modern sites :P)
1130
The Pub / IE 11 and its funny developer tools...
« on March 16th, 2014, 04:30 PM »
So, I installed my Windows updates a few hours ago (for those curious, it did take about an hour... :lol:), and in the lot, I forgot to uncheck IE 11, so it kindly installed it for me.

I figured, what the hell, let's try it again, last time I tried out the beta, and removed it because they'd removed browser modes.

Okay, so...
- These new dev tools, where did they build the UI..? Did they actually have plans to build a UI for it?! It absolutely sucks. Everything is optimized towards reducing productivity. We're talking about a finished product that's supposed to overtake Chrome and Firefox and everything... Ah ah ah. Just launch it, then start scrolling. YEAH, smooth scrolling. Did I say SLOW, too? Smooth is nice. But if the user has disabled smooth scrolling in *Windows animations*, why the hell would they want that in another program..?

- Browser mode... Okay, they renamed that to Document mode. Yeah, super. They made it much harder to trigger (IE10: press F12, click the select box, select, done. IE11: press F12, scroll down the icon list, determine that the last one is the right one, then go through the list of select boxes, choose the one that NO LONGER says Browser and says "Edge" instead of "IE 11" making it even harder to find, and then select in the dropdown.)

- Okay, so I'm actually trying it out on my local website.

- IE 11: nice... Except that a child div having an opaque background will override its parent's border-radius. Opera has the same problem, but we're talking about a browser whose engine was last updated in 2012. Also, it doesn't seem to properly support display: flex, even though IE 10 does. Well, as far as I can remember, it did in my IE 10 install...

- IE 10: looks okay. Except for the flex thing.

- IE 9: at that point, all hell breaks loose.

- And then I realize that not only do I have to switch Document Mode to 9, but I also have to switch the user agent to 9. Manually, for each and every browser change!! If I don't, IE8 becomes ridiculous, as it no longer loads the html5shiv, and thus doesn't recognize <aside> tags for instance, and breaks the sidebar layout.

- Funny fact: if you close the dev tools, IE will automatically reload the IE 11 version. Which is so nice for making life easier for developers... Not.

Anyway... Apart from that, it looks okay, but I'd like to know if any of you who haven't installed IE 11 can see the same header in Wilde as in the screenshot below. That is: normally, the Unwedge title should be at the BOTTOM of the banner, rather than the top.
1131
Features / Re: New revs
« on March 16th, 2014, 12:20 AM »
[Commit revision e27bd50]
Author: Nao
Date: Sat, 15 Mar 2014 20:35:12 +0100
Stats: 14 files changed; +18 (insertions), -19 (deletions)

  • More strpos to strhas updates. The one in Subs-Cache, in particular, is really cool. (Class-DB, Class-DBHelper, Class-Editor, Class-System, Feed, Load, ManageErrors, Subs-Auth, Subs-BBC, Subs-Cache, Subs-Members, Subs-Template, Subs, media/Aeva-Embed)

[Commit revision 53fcfe9]
Author: Nao
Date: Sun, 16 Mar 2014 00:20:02 +0100
Stats: 2 files changed; +3 (insertions), -22 (deletions)

  • Wedge didn't actually need the $oldurl fix being postponed to loadTheme. I was careful in moving as much processing to cleanRequest() as I could, but I left board-related fixes to loadTheme, which I didn't have to, because (1) moderator links are actually based on the https://wedge.org/ pseudo-constant, not on an outdated URL, and (2) at that point, the new URL was already active, and thus 'theme' data was up to date as well. Tsssk. (Load.php, QueryString.php)
1132
Features / Re: New revs
« on March 15th, 2014, 06:16 PM »
[Commit revision 59cb728]
Author: Nao
Date: Sat, 15 Mar 2014 18:08:53 +0100
Stats: 3 files changed; +9 (insertions), -19 (deletions)

  • More fixes and tweaks to the banner area. (Warm/macros.xml, Wilde/extra.css, index.css)

[Commit revision 00ddf19]
Author: Nao
Date: Sat, 15 Mar 2014 18:11:18 +0100
Stats: 1 file changed; +4 (insertions), -4 (deletions)

  • My old iPod 4 doesn't like notification backgrounds, so I'm adding an exception for it. I don't know enough anymore about iOS to be able to do better than that. I'm just trying to make the homepage watchable everywhere I can test it. (index.css)

[Commit revision 133e7d8]
Author: Nao
Date: Sat, 15 Mar 2014 18:14:47 +0100
Stats: 1 file changed; +6 (insertions), -1 (deletion)

  • Disable the tap highlighter on mobile devices for main menus and contextual menus. It was especially horrible in Android's stock browser. (index.css)
1133
Plugins / [Plugin] Re: HideMod
« on March 15th, 2014, 01:58 PM »
No, the grace period applies to that. Only the modify all posts permission is exempted.

That would require adding a 'bypass grace period' permission, I guess.
1134
Features / Re: New revs
« on March 15th, 2014, 10:16 AM »
[Commit revision 4128eed]
Author: Nao
Date: Sat, 15 Mar 2014 10:06:58 +0100
Stats: 1 file changed; +1 (insertion), -1 (deletion)

  • Wess already supports backface-visibility's prefix handling. (common.css)

[Commit revision e5d32ea]
Author: Nao
Date: Sat, 15 Mar 2014 10:10:01 +0100
Stats: 1 file changed; +2 (insertions), -3 (deletions)

  • Removed tabindex helpers from sel_* select boxes in the post editor. Why, should you ask..? Because they're in the way. If you switch from title to body with the tab key, you'll end up hitting at least two barely used select boxes first, and it's a PITA. Seriously, I'm not going to help 'accessibility' by allowing easier access to features that get in the way of actual productivity. If you customize font faces for all your posts, you have a problem. (Class-Editor.php)

[Commit revision 8d76189]
Author: Nao
Date: Sat, 15 Mar 2014 10:15:56 +0100
Stats: 6 files changed; +24 (insertions), -11 (deletions)

  • Added a new helper function, strhas(), which is the equivalent of strpos() !== false, but also supports arrays of strings, to avoid multiple strpos tests, or even worse -- preg_match tests, which are so much slower than strpos calls (actually, the more calls, the faster strpos gets.) (Subs.php)
  • Replaced some obvious culprits with strhas. I'm sure you'll agree that it rocks, at this point. Or you won't care. Which is more likely. (Class-CSS.php, Class-System.php, Login.php, Login2.php, Security.php)
1135
It's interesting to note that...

- These errors ONLY come from kalindark,
- And they're ONLY triggered on image requests: any avatars, and any media thumbnails, too. (So, Aeva Media and the attachment system are out of suspicion; it's really related to the MIME type itself.)

Did you do anything special to your server configuration for image files..?

And I just tested with Android's stock browser, also on Android 4.1.2 like kalindark, and have no such error, really.
Ask kalindark if he's using a customized version of Android, and if he's using an anti-virus on it.
1136
Ideally, to fix this, we should, in order:

- Be able to reproduce the error message... I went to your post (and even to the attachment download link) with my Chrome Mobile, and saw no such error.
- And then disable CloudFlare to see if it's a proxy problem.

It's all about the 'Accept' header not being in the request, but I don't know if it's ACTUALLY due to a bot or not.

Also, I noticed in your accesss log that many apparently valid Bing requests are blocked. Not that I give much of a damn about Bing (AFAIK, only Windows Mobile users have to deal with this), but it's still something of a worry...

http://www.bing.com/webmaster/help/how-to-verify-bingbot-3905dc26

I may have to disable that rule entirely. Thanks to Microsoft's laziness, it looks like I may have to let some bots go through the process. -_-
1137
Is it always for the same link..? Attachment #497?
Can it be reproduced with the Android stock browser?
1138
Plugins / [Plugin] Re: HideMod
« on March 15th, 2014, 12:17 AM »
Hmm, that would imply giving you moderator permissions for this board... :^^;:

Too bad there aren't per-topic permissions available, ah ah...
1139
Features / Re: New revs
« on March 14th, 2014, 09:34 PM »
[Commit revision 751384a]
Author: Nao
Date: Fri, 14 Mar 2014 21:34:00 +0100
Stats: 1 file changed; +5 (insertions), -1 (deletion)

  • Ensuring that logos don't get out of bounds if used in a Wine, Warm or Wuthering banner. (Wine/extra.css)
  • Note that you can change the banner height with the $banner_height variable. It's currently set to 100px, which is the height of that nice little banner I have for Wine and Warm.
1140
Features / Re: New revs
« on March 14th, 2014, 03:45 PM »
[Commit revision ba2f5d8]
Author: Nao
Date: Fri, 14 Mar 2014 11:01:03 +0100
Stats: 1 file changed; +0 (insertion), -8 (deletions)

  • Some remaining outdated banner CSS. (extra.rtl.css)

[Commit revision 7b5aeca]
Author: Nao
Date: Fri, 14 Mar 2014 11:02:18 +0100
Stats: 1 file changed; +3 (insertions), -4 (deletions)

  • A file was still using the old copyright layout. (Subs-PrettyUrls.php)

[Commit revision c421731]
Author: Nao
Date: Fri, 14 Mar 2014 11:12:30 +0100
Stats: 1 file changed; +5 (insertions), -0 (deletion)

  • Added a mixin that enables hardware acceleration on any selector. Usage: selector mixes .hardware -- simple enough. I'm open to suggestions on how to improve it. The backface-visibility thing doesn't help performance on my Android device, but it probably does on older OSes. (common.css)

[Commit revision e79d0b1]
Author: Nao
Date: Fri, 14 Mar 2014 15:19:46 +0100
Stats: 6 files changed; +7 (insertions), -12 (deletions)

  • Removed a few outdated CSS classes (.css and .hove). (Warm/extra.css, Wilde/extra.css, Wilde/extra.ie6.css, Wuthering/extra.css, Wuthering/extra.ie6.css, extra.rtl.css)

[Commit revision 15630ef]
Author: Nao
Date: Fri, 14 Mar 2014 15:44:01 +0100
Stats: 1 file changed; +63 (insertions), -61 (deletions)

  • Reordered main menu CSS to make most of it part of the .menu class definition. (index.css)
  • Menu text selection is now forbidden via CSS, rather than through JS. (index.css)

[Commit revision 8fe99a0]
Author: Nao
Date: Fri, 14 Mar 2014 15:45:28 +0100
Stats: 1 file changed; +1 (insertion), -1 (deletion)

  • Added hardware acceleration for notification popups. See..? That was easy. Try to do that everywhere you have a scrollable element. (index.css)