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.
4921
Archived fixes / Re: Admin search issues
« on June 11th, 2012, 05:32 PM »
The later strings are loaded through an obscure loop in the admin search that actually executes every single function it finds in the admin... Not exactly very smart I'd say?!
There are certainly more ways to do that properly...?!
Anyway, I think I'm "simply" going to force a reload of the original language files after that... Meh!!
There are certainly more ways to do that properly...?!
Anyway, I think I'm "simply" going to force a reload of the original language files after that... Meh!!
4922
Off-topic / Re: The 10 Year Sigh
« on June 11th, 2012, 03:10 PM »
As you wish, really... :unsure:
4923
Off-topic / Re: The 10 Year Sigh
« on June 11th, 2012, 01:07 PM »
Are you sure you want to discuss this in public...? :-/Quote from Arantor on June 11th, 2012, 05:21 AM It's always two sides of the same coin.
When I broke up in 2005, I went on to be alone for a total of 6 weeks before I met Milady... 6 weeks isn't terribly long.
However, in that time:
- I was very happy with the breakup.
- I was horribly sad about it at the same time.
- I went through a two-week period of what can be characterized as depression. (Or is that post-breakup trauma?) I barely ate anything, had no interest in anything. My neighbor told me later that I looked like a zombie.
- I started losing weight. Because of that, I started feeling a bit better about my overall looks. Thus, I kept eating the same, started doing a 'proper' diet, and ended up losing about 40 pounds in the course of 6 months (20 pounds in the first month).
- After several weeks I felt better about myself, had taken new directions and really got out of the depression period. I was ready to conquer the world again...
I guess that, sometimes, you really have to go through bad times to be able to renew your focus in life. It's the same with lost loves, lost family, even lost opportunities can be a factor...Quote And, err... Where was that?Quote Do you think anyone's code is bug-free? Not everyone is John Carmack or whatever... We contribute, little by little. The bigger the contribution, the higher the chances of a bug hidden somewhere.
Heck, most of the times you only find the bugs by chance. Accounting for them before they happen, is tantamount to adding a lock on every door in one's house even though one lives alone. Sometimes it's just simpler to do something, try it, if it works in the long run great, if it doesn't, either fix it again, or just revert it and think of another solution. Or just nothing. It's not that important...Quote I made Kyodai Mahjongg 15 years ago. It was certainly my greatest success in life, and I still hate it for what it's worth. I find it childish and primitive, too. It's nothing compared to my recent web works. But people like that naïveté, I guess. Don't bother trying to fight with who you used to be. What matters is what you're doing now. And being content with it. Happiness isn't always about accomplishing goals. It's mainly about enjoying the process in the middle.Quote I hope I didn't hurt you with my comment on the ban feature thing...Quote Wanna come over...? I mean right now? It can always be done...
Thing is, as much as it's turned my life upside down, I'm not entirely sure it hasn't done me a favour.
When I broke up in 2005, I went on to be alone for a total of 6 weeks before I met Milady... 6 weeks isn't terribly long.
However, in that time:
- I was very happy with the breakup.
- I was horribly sad about it at the same time.
- I went through a two-week period of what can be characterized as depression. (Or is that post-breakup trauma?) I barely ate anything, had no interest in anything. My neighbor told me later that I looked like a zombie.
- I started losing weight. Because of that, I started feeling a bit better about my overall looks. Thus, I kept eating the same, started doing a 'proper' diet, and ended up losing about 40 pounds in the course of 6 months (20 pounds in the first month).
- After several weeks I felt better about myself, had taken new directions and really got out of the depression period. I was ready to conquer the world again...
I guess that, sometimes, you really have to go through bad times to be able to renew your focus in life. It's the same with lost loves, lost family, even lost opportunities can be a factor...
I spent the better part of the evening butting heads with a jerk, acting something like a jerk myself, eh, that's life for you. Everything I dished out, I felt justified in.
Everything of the last few weeks, certainly, but quite possibly a lot longer, has been walking a road almost for the sake of walking the road. None of the code I've turned out lately has been particularly wonderful, or interesting, or indeed particularly bug free,
Heck, most of the times you only find the bugs by chance. Accounting for them before they happen, is tantamount to adding a lock on every door in one's house even though one lives alone. Sometimes it's just simpler to do something, try it, if it works in the long run great, if it doesn't, either fix it again, or just revert it and think of another solution. Or just nothing. It's not that important...
Everything I did 10 years ago seemed deep and full of imagination - of course in hindsight it looks childish and primitive, but the me of 10 years ago didn't care.
The feeling of not seeing the wood for the trees, that's where I am right now. I'm so deep into code that I don't even understand why I'm doing it any more - not just this project or that project, but code as a thing.
I'm gonna take a few days out and see what I can do, see if I can find some of the magic I used to have. See you on the flipside.
4924
Archived fixes / Admin search issues
« on June 11th, 2012, 12:52 PM »
Here's the list of language files that admin search will work its magic on:
'Help', 'ManageMail', 'ManageSettings', 'ManageBoards', 'ManagePaid', 'ManagePermissions', 'Search',
'Login', 'ManageSmileys', 'ManageMaintenance',
As you can see, it doesn't have Profile in it...
However, if I do a search on 'minposts' (signature_minposts), it returns to me the string from the Profile page, instead of the one from the Admin page. The profile page one is multilingual-ready, so it would return an error but I fixed that one in my local install (I'll commit it later, it's actually pretty big compared to the relevance of that bug...)
But I don't see Profile in that list. So I enabled debugging locally, and looked at the language list... Wow, what a load of fun.
Fichiers de langue (42) : index.english (default), index.french (default), Admin.english (default), Admin.french (default), Help.english (default), ManageMail.english (default), ManageSettings.english (default), ManageBoards.english (default), ManagePaid.english (default), ManagePermissions.english (default), Search.english (default), Login.english (default), ManageSmileys.english (default), ManageMaintenance.english (default), Help.french (default), ManageMail.french (default), ManageSettings.french (default), ManageBoards.french (default), ManagePaid.french (default), ManagePermissions.french (default), Search.french (default), Login.french (default), ManageSmileys.french (default), ManageMaintenance.french (default), Help.english (default), Help.french (default), ManageSettings.english (default), ManageSettings.french (default), Help.english (default), Help.french (default), ManageSettings.english (default), ManageSettings.french (default), ManageSettings.english (default), ManageSettings.french (default), ManageSettings.english (default), ManageSettings.french (default), ManageSettings.english (default), ManageSettings.french (default), ManageSettings.english (default), ManageSettings.french (default), Profile.english (default), Profile.french (default).
There are two issues in this:
- The Profile language is loaded at the very end. I don't see where it's coming from...?! This call needs to be removed.
- The other files are loaded multiple times. It's likely that they're stopped at the gates before they're loaded one time too many (?), but it seems to happen on a lot of pages... For instance on a topic page with media items, it'll load Media.english, Media.french, Media.english and Media.french in sequence. Here, it's done in that order: (Whole lot).english, then (Whole lot).french, then (Help.english, Help.french...) * count(Whole lot). (Or Whole lot.length, depending on your language of choice.)
The latter is definitely a 'bug' to me, as the language files are only listed if they're actually included. Because it's an array we're sending, the first two Whole lot loops are as expected. It's the last one that doesn't make sense. And the Profile calls. Any ideas...?
'Help', 'ManageMail', 'ManageSettings', 'ManageBoards', 'ManagePaid', 'ManagePermissions', 'Search',
'Login', 'ManageSmileys', 'ManageMaintenance',
As you can see, it doesn't have Profile in it...
However, if I do a search on 'minposts' (signature_minposts), it returns to me the string from the Profile page, instead of the one from the Admin page. The profile page one is multilingual-ready, so it would return an error but I fixed that one in my local install (I'll commit it later, it's actually pretty big compared to the relevance of that bug...)
But I don't see Profile in that list. So I enabled debugging locally, and looked at the language list... Wow, what a load of fun.
Fichiers de langue (42) : index.english (default), index.french (default), Admin.english (default), Admin.french (default), Help.english (default), ManageMail.english (default), ManageSettings.english (default), ManageBoards.english (default), ManagePaid.english (default), ManagePermissions.english (default), Search.english (default), Login.english (default), ManageSmileys.english (default), ManageMaintenance.english (default), Help.french (default), ManageMail.french (default), ManageSettings.french (default), ManageBoards.french (default), ManagePaid.french (default), ManagePermissions.french (default), Search.french (default), Login.french (default), ManageSmileys.french (default), ManageMaintenance.french (default), Help.english (default), Help.french (default), ManageSettings.english (default), ManageSettings.french (default), Help.english (default), Help.french (default), ManageSettings.english (default), ManageSettings.french (default), ManageSettings.english (default), ManageSettings.french (default), ManageSettings.english (default), ManageSettings.french (default), ManageSettings.english (default), ManageSettings.french (default), ManageSettings.english (default), ManageSettings.french (default), Profile.english (default), Profile.french (default).
There are two issues in this:
- The Profile language is loaded at the very end. I don't see where it's coming from...?! This call needs to be removed.
- The other files are loaded multiple times. It's likely that they're stopped at the gates before they're loaded one time too many (?), but it seems to happen on a lot of pages... For instance on a topic page with media items, it'll load Media.english, Media.french, Media.english and Media.french in sequence. Here, it's done in that order: (Whole lot).english, then (Whole lot).french, then (Help.english, Help.french...) * count(Whole lot). (Or Whole lot.length, depending on your language of choice.)
The latter is definitely a 'bug' to me, as the language files are only listed if they're actually included. Because it's an array we're sending, the first two Whole lot loops are as expected. It's the last one that doesn't make sense. And the Profile calls. Any ideas...?
4925
Off-topic / Re: The browser you loved to hate
« on June 11th, 2012, 11:05 AM »
Don't know where to post this...
I'm not a big fan of Chrome, especially because of their strange UI. Recently though, Maxthon added Webkit (I suspect actually a fork of Chrome) into their previously-IE-only rendering system, and their html5test.com scores directly show that...
The latest version, released today, scores 465/500, i.e. 23 points more than Chrome Canary.
To do that, it adds Subtitles support to the video tag, support for h264 (it's only bonus points thankfully, no need for that in a browser really...), support for aac and mp3 (ditto), partial support for input datetime/month/week/time/datetime-local (it loses full support for image, and date compared to Chrome though), and microdata (15 points). It also loses seamless iframes and custom search providers.
Still, Maxthon is much easier to use than Chrome IMHO, if only because of their "normal" tab bar compared to Chrome's, and even though they're still lacking vertical tab bars (something Chrome actually *removed* months ago, while I was considering making a partial switch to it because it was relatively usable), it's still miles ahead of it otherwise, and I've been using it as a secondary browser for a few weeks now, and completely ditched Chrome for now...
I'm not a big fan of Chrome, especially because of their strange UI. Recently though, Maxthon added Webkit (I suspect actually a fork of Chrome) into their previously-IE-only rendering system, and their html5test.com scores directly show that...
The latest version, released today, scores 465/500, i.e. 23 points more than Chrome Canary.
To do that, it adds Subtitles support to the video tag, support for h264 (it's only bonus points thankfully, no need for that in a browser really...), support for aac and mp3 (ditto), partial support for input datetime/month/week/time/datetime-local (it loses full support for image, and date compared to Chrome though), and microdata (15 points). It also loses seamless iframes and custom search providers.
Still, Maxthon is much easier to use than Chrome IMHO, if only because of their "normal" tab bar compared to Chrome's, and even though they're still lacking vertical tab bars (something Chrome actually *removed* months ago, while I was considering making a partial switch to it because it was relatively usable), it's still miles ahead of it otherwise, and I've been using it as a secondary browser for a few weeks now, and completely ditched Chrome for now...
4926
Features / Re: Rewriting the skin file parser...
« on June 11th, 2012, 09:35 AM »
Yes. It's only a gzip optimization. Nothing more. Plus when you have multiple versions of a gzipped CSS file, it's way easier to compare them when the selectors are stored. Otherwise Wedge tends to mix them up...
4927
Features / Re: These two bytes may not matter to you...
« on June 10th, 2012, 05:11 PM »
Also... Woohoo, bug?
Found this in the post below the one I just replied...
It doesn't have the single quotes. But they're definitely in there internally. It also shows that way in Preview mode...Quote from Nao on November 7th, 2010, 01:03 PM
Found this in the post below the one I just replied...
It doesn't have the single quotes. But they're definitely in there internally. It also shows that way in Preview mode...
Bienvenue dans l'installateur du Forum Simple Machines !
Quote splitter. I see what you mean now I've seen it, very cleverotallyrandomcontentthatwilldefinitelyoverflowfromthisbox.
4928
Features / Re: These two bytes may not matter to you...
« on June 10th, 2012, 05:09 PM »
(Crap, I'm unable to find in the admin area where I can set up, locally, the need to confirm my password when accessing the admin area... I tried to search for 'admin', but it didn't find anything...)Quote from Arantor on September 15th, 2011, 01:47 AM I'm trying to figure out what topicseen is for, and it just doesn't make sense...
Here's a little anecdote of what I had today.
A two-page topic on my local install, all posts marked as unread. Back to the parent board. Clicking the New icon. Getting to the page. Notice that the URL doesn't have "?seen" in it (unlike the homepage stuff). Reload page: the first post still gets the 'new' icon... (As long as I refresh the page.) It doesn't happen here, it's probably due to a stat bug in the database. I just did a recount operation and now it works as expected. Still, that's interesting: there's a minor bug in Wedge that causes num_replies to be wrong (possibly when using post moderation or ignoring users or reverse order for posts), and having num_replies wrong will break a lot of things... (including hiding any posts that are after the recorder number of replies...)
Anyway, that's not what my post was about.
Whether I use the messageindex link or the homepage link, the results are the same. Internally, it acts as if it had a 'seen' variable in the URL. So, then, what's the point in indicating the variable at all...? It's a waste of space...
Perhaps it's just the same with boardseen, I don't know.
We certainly should consider accessing the boardseen cache thoroughly when posting. We've been discussing this yesterday somewhere else -- it just doesn't make sense at all, this feature in SMF... And if the Wedge authors don't understand it, maybe it needs some more work.
My understanding was that topicseen is an older item, legacy from 1.1 or somesuch, but I have no idea offhand if that's still the case or not.
Here's a little anecdote of what I had today.
A two-page topic on my local install, all posts marked as unread. Back to the parent board. Clicking the New icon. Getting to the page. Notice that the URL doesn't have "?seen" in it (unlike the homepage stuff). Reload page: the first post still gets the 'new' icon... (As long as I refresh the page.) It doesn't happen here, it's probably due to a stat bug in the database. I just did a recount operation and now it works as expected. Still, that's interesting: there's a minor bug in Wedge that causes num_replies to be wrong (possibly when using post moderation or ignoring users or reverse order for posts), and having num_replies wrong will break a lot of things... (including hiding any posts that are after the recorder number of replies...)
Anyway, that's not what my post was about.
Whether I use the messageindex link or the homepage link, the results are the same. Internally, it acts as if it had a 'seen' variable in the URL. So, then, what's the point in indicating the variable at all...? It's a waste of space...
Perhaps it's just the same with boardseen, I don't know.
We certainly should consider accessing the boardseen cache thoroughly when posting. We've been discussing this yesterday somewhere else -- it just doesn't make sense at all, this feature in SMF... And if the Wedge authors don't understand it, maybe it needs some more work.
4929
Features / Re: Need some help on a UI matter
« on June 10th, 2012, 12:55 PM »
Okay, I.... I don't like being the boring guy here, but that's just what I'm going to be.
Some things work as they are. They're not fantastic per se, but it's unlikely there's anything better -- and if there is, some people will still think it's worse.
The warning system is one such thing. I personally think that the current system is simple enough to be understandable by everyone, while a rewrite could put off some admins or whatever, because it's going to make things more complicated.
Basically: if you have trouble figuring out a 'nice' UI for some feature, maybe it means that there isn't any good UI .It's the kind of thing that you come up with naturally, instinctively, and if it doesn't, maybe others will also have trouble figuring out how the UI works. At least instinctively. And we know most people don't RTFM...
(Or maybe I'm just pushing Pete to work on finishing the current features rather than adding new ones :P) (j/k)
Some things work as they are. They're not fantastic per se, but it's unlikely there's anything better -- and if there is, some people will still think it's worse.
The warning system is one such thing. I personally think that the current system is simple enough to be understandable by everyone, while a rewrite could put off some admins or whatever, because it's going to make things more complicated.
Basically: if you have trouble figuring out a 'nice' UI for some feature, maybe it means that there isn't any good UI .It's the kind of thing that you come up with naturally, instinctively, and if it doesn't, maybe others will also have trouble figuring out how the UI works. At least instinctively. And we know most people don't RTFM...
(Or maybe I'm just pushing Pete to work on finishing the current features rather than adding new ones :P) (j/k)
4930
Features / Re: Rewriting the skin file parser...
« on June 10th, 2012, 12:49 PM »
Okay, thanks... Then I guess it's due to this: your selector is split into two different selectors ("something:(firstpart" and "secondpart)"), and then sorted to gain a few bytes at gzipping time, but this also moves "secondpart)" further up the chain instead of directly following it. Hence the broken part.
So, there are two ways of avoiding this...
1/ Just reverting my sort() call and calling it quits on the optimization.
2/ Protection quotes, double quotes, brackets and parenthesis before doing the parsing. That is, anything between these items would be base64-encoded or something (right before building the pseudo-XML CSS tree), and then decoded again once the actual CSS file is generated.
I have a neat preference for solution 2 because it's "cleaner" in my opinion, and would also be likely to fix other potential issues I haven't found yet.
However, I'm not 100% sure it's going to work flawlessly. I can't think of anything right now, but there may be occasions where Wedge will want to access stuff between protected bytes at tree parsing time... What do you think?
So, there are two ways of avoiding this...
1/ Just reverting my sort() call and calling it quits on the optimization.
2/ Protection quotes, double quotes, brackets and parenthesis before doing the parsing. That is, anything between these items would be base64-encoded or something (right before building the pseudo-XML CSS tree), and then decoded again once the actual CSS file is generated.
I have a neat preference for solution 2 because it's "cleaner" in my opinion, and would also be likely to fix other potential issues I haven't found yet.
However, I'm not 100% sure it's going to work flawlessly. I can't think of anything right now, but there may be occasions where Wedge will want to access stuff between protected bytes at tree parsing time... What do you think?
4931
Features / Re: New revs
« on June 10th, 2012, 12:39 PM »
rev 1611
(7 files, 4kb)
+ Added default Wireless support for Samsung and HTC devices that don't provide a generic mobile string. HTC is very unlikely to fail on fail, so it's probably overkill. (Class-MoDe.php)
+ Added a new easing type for jQuery animations, 'out', which is basically a size-optimized version of easeOutExpo from jQuery UI/jQuery Easing. I like my code short and easy to compress, thank you very much. (script.js)
+ Re-implemented my popup animation for help icons, using the out easing. Yeah, that's really the only thing that satisfies me when animating large areas. Overall code adds 60 bytes but it can and should be used in other areas as well. (script.js) :edit: just 55 bytes, actually...
* Don't bother showing a page index in the thought list if no thought is available. (Thoughts.template.php)
! Forgot to redirect the profile thoughts page to the renamed function. (Profile.php)
! If a menu was destroyed before showing it (there's only one reason it should happen: area not found in the profile section -- uh, like the bug I just mentioned), Wedge would cause an error later. (GenericMenu.template.php)
! Chrome sometimes seems to ignore linebreaks with a clear class. Odd. Replaced that specific occurrence with a div that does the same. (Credits.php)
! Fixed padding in quick reply boxes. (sections.css)
(7 files, 4kb)
+ Added default Wireless support for Samsung and HTC devices that don't provide a generic mobile string. HTC is very unlikely to fail on fail, so it's probably overkill. (Class-MoDe.php)
+ Added a new easing type for jQuery animations, 'out', which is basically a size-optimized version of easeOutExpo from jQuery UI/jQuery Easing. I like my code short and easy to compress, thank you very much. (script.js)
+ Re-implemented my popup animation for help icons, using the out easing. Yeah, that's really the only thing that satisfies me when animating large areas. Overall code adds 60 bytes but it can and should be used in other areas as well. (script.js) :edit: just 55 bytes, actually...
* Don't bother showing a page index in the thought list if no thought is available. (Thoughts.template.php)
! Forgot to redirect the profile thoughts page to the renamed function. (Profile.php)
! If a menu was destroyed before showing it (there's only one reason it should happen: area not found in the profile section -- uh, like the bug I just mentioned), Wedge would cause an error later. (GenericMenu.template.php)
! Chrome sometimes seems to ignore linebreaks with a clear class. Odd. Replaced that specific occurrence with a div that does the same. (Credits.php)
! Fixed padding in quick reply boxes. (sections.css)
4932
Features / Re: Rewriting the skin file parser...
« on June 9th, 2012, 11:39 PM »
Can you revert to an even older copy then? Just check the log for Class-CSS.php to see the relevant revs... Thanks!
4933
Features / Re: Rewriting the skin file parser...
« on June 9th, 2012, 10:18 PM »
Can you help determine what revision broke it?
4934
Features / Re: Rewriting the skin file parser...
« on June 9th, 2012, 11:26 AM »
Not surprised. WeCSS has trouble with any complex css2/3 that uses commas or quotes. I think one of my comments warns against that.
What shall we do? Protect all code at parse time? In what order? etc.... Headaches ahead.
What shall we do? Protect all code at parse time? In what order? etc.... Headaches ahead.
4935
Other software / Re: Aeva custom URL's
« on June 8th, 2012, 11:53 PM »
Well, it's Aeva for SMF I guess, so there's not much I can do to help... I'm just not familiar with it anymore. I made a lot of changes in Aeva of Wedge. (Heck, I also broke several things I still need to fix... -_-)