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.
9736
Features / Re: New revs
« on February 8th, 2011, 12:15 AM »
rev 573
(2 files, 5kb) (a very small fix update.)
! The lighten function was broken. (Class-CSS.php)
- Removed some leftover debug code. (Subs.php)
(2 files, 5kb) (a very small fix update.)
! The lighten function was broken. (Class-CSS.php)
- Removed some leftover debug code. (Subs.php)
9737
Features / Re: New revs
« on February 7th, 2011, 01:21 PM »
rev 572
(10 files, 20kb)
* Rewrote the CSS parser to get rid of the XML parser and optimize parsing speed. Mission accomplished, with performance doubled, and code shortened by 90 lines and 2.6 KB. (Class-CSS.php)
- Got rid of the libxml dependency. Oh yeah. (install.php, readme_*.html, Class-CSS.php, Install.english.php, Install.french.php)
* Playing with Warm colors... Just for fun... (Warm/index.css)
* Typonazi. (Class-Package.php, Subs.php, readme_*.html)
(10 files, 20kb)
* Rewrote the CSS parser to get rid of the XML parser and optimize parsing speed. Mission accomplished, with performance doubled, and code shortened by 90 lines and 2.6 KB. (Class-CSS.php)
- Got rid of the libxml dependency. Oh yeah. (install.php, readme_*.html, Class-CSS.php, Install.english.php, Install.french.php)
* Playing with Warm colors... Just for fun... (Warm/index.css)
* Typonazi. (Class-Package.php, Subs.php, readme_*.html)
9738
Off-topic / Re: Erm say what?
« on February 7th, 2011, 12:39 PM »
The January mess was what it was -- a mess. Including what came FROM the January mess but later in the year, the end result to me is that:
1/ it led into Yourasoft's stuff, which ended up being a waste of time for a lot of us,
2/ it was an absolute and perfect waste of time in general for all team members, whether pro or anti-leadership,
3/ it took at least 6 months off SMF's schedule,
4/ it hurt its reputation badly, very badly (no thanks to their leadership!)
5/ it pushed away most of their capable teamies or non-teamies.
The only good things that came out of it: BSD license, and Wedge.
So it really was the sign that SMF was dead. Which, in itself, is a good sign because then it can be reborn. Hence Wedge.
1/ it led into Yourasoft's stuff, which ended up being a waste of time for a lot of us,
2/ it was an absolute and perfect waste of time in general for all team members, whether pro or anti-leadership,
3/ it took at least 6 months off SMF's schedule,
4/ it hurt its reputation badly, very badly (no thanks to their leadership!)
5/ it pushed away most of their capable teamies or non-teamies.
The only good things that came out of it: BSD license, and Wedge.
So it really was the sign that SMF was dead. Which, in itself, is a good sign because then it can be reborn. Hence Wedge.
9739
Off-topic / Re: Odd little suggestion, not something I'd really encourage for us
« on February 7th, 2011, 09:44 AM »
Not supported in Opera... :(
9740
Other software / Re: Moving on
« on February 6th, 2011, 10:07 PM »The ecosystem is crumbling because the essential requirements - enough people with the skills, the time, the energy - just aren't there any more. Even though I know for a fact there is now a branch in their SVN for 2.1, with half a dozen commits or so, they're all micro-optimisations rather than anything actually useful.
9741
Features / Re: New revs
« on February 6th, 2011, 10:04 PM »
rev 570
(2 files, 6kb)
* Improved performance of XML tree builder by 20% by applying various micro-optimizations. Not that it'll be noticeable, but a CPU cycle is a CPU cycle. (Class-CSS.php)
! Forgot to declare .title2 in Warm styling. (Warm/index.css)
(2 files, 6kb)
* Improved performance of XML tree builder by 20% by applying various micro-optimizations. Not that it'll be noticeable, but a CPU cycle is a CPU cycle. (Class-CSS.php)
! Forgot to declare .title2 in Warm styling. (Warm/index.css)
9742
Features / Re: New revs
« on February 6th, 2011, 05:30 PM »
rev 569
(14 files, 14kb)
* Moved calendar months to the sidebar, to save an extra column. (Calendar.php, Calendar.template.php, sections.css, Warm/sections.css)
! The IE6 stylesheet wouldn't compile properly, because of the use of a "<". (Class-CSS.php)
+ Show lines in context when errors are found during compilation. (Class-CSS.php)
- Removed commented out lines after testing them to work in login and register pages. (ie6.css, ie7.css, Warm/ie6.css, Warm/ie7.css)
- Removed copyright removal text. (Who.english.php, Who.french.php)
* More $context['browser'] to $browser. (index.template.php)
* French translation. (Help, ManagePermissions, Who)
(14 files, 14kb)
* Moved calendar months to the sidebar, to save an extra column. (Calendar.php, Calendar.template.php, sections.css, Warm/sections.css)
! The IE6 stylesheet wouldn't compile properly, because of the use of a "<". (Class-CSS.php)
+ Show lines in context when errors are found during compilation. (Class-CSS.php)
- Removed commented out lines after testing them to work in login and register pages. (ie6.css, ie7.css, Warm/ie6.css, Warm/ie7.css)
- Removed copyright removal text. (Who.english.php, Who.french.php)
* More $context['browser'] to $browser. (index.template.php)
* French translation. (Help, ManagePermissions, Who)
9743
Features / Re: New revs
« on February 6th, 2011, 12:53 PM »
rev 567
(4 files, 10kb)
* Optimized the CSS to XML pre-parser by a factor of 20 or something. Seriously -- don't use str_replace in an evaluated preg_replace that gets called thousands of times. Just don't forget that. (Class-CSS.php)
! usort() may not accept a dynamic function before PHP 5.3, but it doesn't accept $this->kind_of_call either ;) (Class-CSS.php)
* Cached the parent node in searchExtends, as it's pointless to recalculate it on every loop. (Class-CSS.php)
! Fixed a few minor issues. (Class-CSS.php)
! Fixed an incorrect conversion to the simplified syntax for the profile area. (Warm/sections.css)
* Moved the cache folder's cache settings to its own .htaccess file, instead of the top-level one. Dunno if it'll help, but I also added a Cache-Control header to that. Also added a note about FallbackResource (I just found out about that one.) (other/.htaccess, cache/.htaccess)
--> Now I can take some time to look into your other additions... And don't make me believe you checked all of my week's commits in just a few minutes :P
(4 files, 10kb)
* Optimized the CSS to XML pre-parser by a factor of 20 or something. Seriously -- don't use str_replace in an evaluated preg_replace that gets called thousands of times. Just don't forget that. (Class-CSS.php)
! usort() may not accept a dynamic function before PHP 5.3, but it doesn't accept $this->kind_of_call either ;) (Class-CSS.php)
* Cached the parent node in searchExtends, as it's pointless to recalculate it on every loop. (Class-CSS.php)
! Fixed a few minor issues. (Class-CSS.php)
! Fixed an incorrect conversion to the simplified syntax for the profile area. (Warm/sections.css)
* Moved the cache folder's cache settings to its own .htaccess file, instead of the top-level one. Dunno if it'll help, but I also added a Cache-Control header to that. Also added a note about FallbackResource (I just found out about that one.) (other/.htaccess, cache/.htaccess)
--> Now I can take some time to look into your other additions... And don't make me believe you checked all of my week's commits in just a few minutes :P
9744
Features / Re: New revs
« on February 5th, 2011, 07:22 PM »
rev 562
(25 files, 22kb)
+ Added basic math functions to CSS parser -- and this will be the last feature I'm adding to it, otherwise I'm gonna faint. The feature is as short as possible, and uses eval() to allow you to use regular PHP syntax in your math. Example: border-width: math($default-border-width*2)/3px). (Class-CSS.php, Subs.php)
* As a rule of thumb: inside a character class, most metacharacters are regular characters again. With this in mind, simplified many, many expressions throughout the source code. Wasn't fun. Ah, and a reminder to the SMF team: \w matches underscores, too... (Class-CSS.php, Class-DB.php, JSModify.php, Load.php, ManageServer.php, ManageSettings.php, ManageSmileys.php, PackageGet.php, Packages.php, Post.php, Post2.php, PrettyUrls-Filters.php, Profile-Modify.php, QueryString.php, Search2.php, Security.php, Subs-Auth.php, Subs-Boards.php, Subs-Post.php, Subs.php, Themes.php, ManageBoards.template.php, ManagePaid.template.php)
- I said I don't care about lower_padding! Grr. (MoveTopic.template.php)
Note: here's to you, Pete. Hopefully you're not the one who'll faint in front of these dozens of regex changes! I tested most of them... But sometimes it's hard to just grasp the idea that in a character class, [ is the same as \[ or even \\[... Or whatever... But that \ needs to be escaped twice... \\\\. Yay.
:edit: Oops... I committed a "work in progress" by mistake. That's the Themes template, FWIW. Please don't bother looking into it. ;) Basically I started removing the CSS previewer, but it was hard to do because I worked so much on fixing it... Maybe you'd like to finish the job for me? :^^;: Or maybe I'll find a way to at least keep the previewer (just not the real-time preview.)
(25 files, 22kb)
+ Added basic math functions to CSS parser -- and this will be the last feature I'm adding to it, otherwise I'm gonna faint. The feature is as short as possible, and uses eval() to allow you to use regular PHP syntax in your math. Example: border-width: math($default-border-width*2)/3px). (Class-CSS.php, Subs.php)
* As a rule of thumb: inside a character class, most metacharacters are regular characters again. With this in mind, simplified many, many expressions throughout the source code. Wasn't fun. Ah, and a reminder to the SMF team: \w matches underscores, too... (Class-CSS.php, Class-DB.php, JSModify.php, Load.php, ManageServer.php, ManageSettings.php, ManageSmileys.php, PackageGet.php, Packages.php, Post.php, Post2.php, PrettyUrls-Filters.php, Profile-Modify.php, QueryString.php, Search2.php, Security.php, Subs-Auth.php, Subs-Boards.php, Subs-Post.php, Subs.php, Themes.php, ManageBoards.template.php, ManagePaid.template.php)
- I said I don't care about lower_padding! Grr. (MoveTopic.template.php)
Note: here's to you, Pete. Hopefully you're not the one who'll faint in front of these dozens of regex changes! I tested most of them... But sometimes it's hard to just grasp the idea that in a character class, [ is the same as \[ or even \\[... Or whatever... But that \ needs to be escaped twice... \\\\. Yay.
:edit: Oops... I committed a "work in progress" by mistake. That's the Themes template, FWIW. Please don't bother looking into it. ;) Basically I started removing the CSS previewer, but it was hard to do because I worked so much on fixing it... Maybe you'd like to finish the job for me? :^^;: Or maybe I'll find a way to at least keep the previewer (just not the real-time preview.)
9745
Features / Re: New revs
« on February 5th, 2011, 05:31 PM »
rev 561
(1 file, 5kb)
! Fixed extends where if the base was for instance, ".class a" or ".class th", and it would match ".class abbr" or ".class thead". Bummer. (Class-CSS.php)
! Fixed extends where if the base was ".class something" and another earlier selector inherited ".class", the current selector wouldn't inherit anything. Extends are a complicated beast. Don't abuse them, or I'll eat you. (Class-CSS.php)
(1 file, 5kb)
! Fixed extends where if the base was for instance, ".class a" or ".class th", and it would match ".class abbr" or ".class thead". Bummer. (Class-CSS.php)
! Fixed extends where if the base was ".class something" and another earlier selector inherited ".class", the current selector wouldn't inherit anything. Extends are a complicated beast. Don't abuse them, or I'll eat you. (Class-CSS.php)
9746
Features / Re: New revs
« on February 5th, 2011, 04:05 PM »
rev 561
(1 file, 7kb)
+ Added support for deep extends. For instance, with ".class1 / .class2 extends .class1 / .class3 extends .class2", class3 will correctly extend class1 as well. And so on. (Class-CSS.php)
! Fixed a few bugs in the process. It's a miracle that it all worked before. (Class-CSS.php)
- There was really no reason to go through array_map('trim') on exploded selectors. It's all trimmed by the CSS optimizer later anyway. (Class-CSS.php)
(1 file, 7kb)
+ Added support for deep extends. For instance, with ".class1 / .class2 extends .class1 / .class3 extends .class2", class3 will correctly extend class1 as well. And so on. (Class-CSS.php)
! Fixed a few bugs in the process. It's a miracle that it all worked before. (Class-CSS.php)
- There was really no reason to go through array_map('trim') on exploded selectors. It's all trimmed by the CSS optimizer later anyway. (Class-CSS.php)
9747
Features / Re: New revs
« on February 5th, 2011, 09:24 AM »
rev 560
(2 files, 8kb)
! Fixed indentation in mixin use. You can safely use a mixin: at deep nesting levels, as well as use nesting inside the mixin blocks themselves. Also changed the commented out samples to reflect that. (Class-CSS.php, Warm/index.css)
* Only allow mixin declaration at the start of a new line, i.e. indentation won't work. This is more of a semantic change than anything else, really. (Class-CSS.php)
* Added a comment explaining why I'm not doing "$var: 0" variable definitions, as would be more logical. (Class-CSS.php)
(Thought of this mixin fix all night, ruined my sleep >_<)
(2 files, 8kb)
! Fixed indentation in mixin use. You can safely use a mixin: at deep nesting levels, as well as use nesting inside the mixin blocks themselves. Also changed the commented out samples to reflect that. (Class-CSS.php, Warm/index.css)
* Only allow mixin declaration at the start of a new line, i.e. indentation won't work. This is more of a semantic change than anything else, really. (Class-CSS.php)
* Added a comment explaining why I'm not doing "$var: 0" variable definitions, as would be more logical. (Class-CSS.php)
(Thought of this mixin fix all night, ruined my sleep >_<)
9748
Features / Re: New revs
« on February 4th, 2011, 11:27 PM »
rev 559
(3 files, 8kb)
+ Added mixin support, which is basically the stuff I removed last week, but with a better syntax, and the ability to specify parameters. Didn't use it in the CSS, so I just provided a few samples. (Class-CSS.php, Subs.php, Warm/index.css)
(I really need to start writing some proper documentation for themers...)
(3 files, 8kb)
+ Added mixin support, which is basically the stuff I removed last week, but with a better syntax, and the ability to specify parameters. Didn't use it in the CSS, so I just provided a few samples. (Class-CSS.php, Subs.php, Warm/index.css)
(I really need to start writing some proper documentation for themers...)
9749
Features / Re: New revs
« on February 4th, 2011, 06:50 PM »
rev 558
(5 files, 8kb)
+ Added a $context['is_ajax'] that is only set if the page is being called by jQuery. (QueryString.php)
! Fixed error log's code browser and any popup in general to hide sidebar and debug info when called from jQuery. (Subs.php, Help.template.php)
* Marked some registration fields as required (in HTML5 terminology) and added a type="email" over there. (Register.template.php)
! Registration username validator always returned true. (register.js)
(5 files, 8kb)
+ Added a $context['is_ajax'] that is only set if the page is being called by jQuery. (QueryString.php)
! Fixed error log's code browser and any popup in general to hide sidebar and debug info when called from jQuery. (Subs.php, Help.template.php)
* Marked some registration fields as required (in HTML5 terminology) and added a type="email" over there. (Register.template.php)
! Registration username validator always returned true. (register.js)
9750
Features / Re: New revs
« on February 4th, 2011, 04:44 PM »
rev 557
(13 files, 105kb)
* The big Warm commit: full conversion to the simplified CSS syntax. (Warm/*.css)
! Fixed parsing of simplified syntax CSS files when stray semicolons were being used. And yes, you still can't use several properties on a single line. It's fixable, but not without making the code more complex to maintain, and simplicity and readability are the goal here, whether in CSS or in PHP. (Class-CSS.php)
* Minor optimization of earlier code. (Subs-Auth.php)
Stats: Warm/* used to account for 85.1kb, now it's at 78.8kb, saving about 8% off the previous size. Or, "the previous size was 9.2% bigger than the new one." Whichever you like best. ;)
(13 files, 105kb)
* The big Warm commit: full conversion to the simplified CSS syntax. (Warm/*.css)
! Fixed parsing of simplified syntax CSS files when stray semicolons were being used. And yes, you still can't use several properties on a single line. It's fixable, but not without making the code more complex to maintain, and simplicity and readability are the goal here, whether in CSS or in PHP. (Class-CSS.php)
* Minor optimization of earlier code. (Subs-Auth.php)
Stats: Warm/* used to account for 85.1kb, now it's at 78.8kb, saving about 8% off the previous size. Or, "the previous size was 9.2% bigger than the new one." Whichever you like best. ;)