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.
6841
Features / Re: Selectbox
« on December 18th, 2011, 10:11 PM »
I guess so, but they could have been more careful...
Seriously, they hijack the keydown, keyup and keypress events when it could just be done once. They also hijack keydown twice... Just to cancel a few keys that don't seem to do anything for me anyway.
Okay, the 'culprit' for the bug is in $orig.focus(), which doesn't seem to work very well. Still haven't found a workaround though... :( :( :(
Also, I think I found a bug here...
Code: [Select]
This basically means... "If the original (hidden) select box is blurred (i.e. folded/closed), call blurSB() (it's a recent uncommitted rewrite -- originally it says something like "trigger the blur event for the displayed select box"). But it says, "only if the displayed box is NOT OPENED"... Which totally makes sense. So I removed that silly exclamation mark... And then, I removed everything because there's no way one could blur the original select, AFAIK... And I don't see why any of our scripts would trigger it, themselves. Saves more data. Currently at 2377.
Seriously, they hijack the keydown, keyup and keypress events when it could just be done once. They also hijack keydown twice... Just to cancel a few keys that don't seem to do anything for me anyway.
Okay, the 'culprit' for the bug is in $orig.focus(), which doesn't seem to work very well. Still haven't found a workaround though... :( :( :(
Also, I think I found a bug here...
// loses focus if original is blurred
.bind("blur.sb", function () {
if (!$sb.is(".open"))
blurSB();
});This basically means... "If the original (hidden) select box is blurred (i.e. folded/closed), call blurSB() (it's a recent uncommitted rewrite -- originally it says something like "trigger the blur event for the displayed select box"). But it says, "only if the displayed box is NOT OPENED"... Which totally makes sense. So I removed that silly exclamation mark... And then, I removed everything because there's no way one could blur the original select, AFAIK... And I don't see why any of our scripts would trigger it, themselves. Saves more data. Currently at 2377.
6842
Features / Re: Selectbox
« on December 18th, 2011, 09:21 PM »
Currently at 2390 and I'm on my way to fix the bug... :)
The original code was a real mess, come to think of it. It looks like several people worked on it separately and each added their own flavor of event handling... And, it's quite obvious they didn't test it extensively when hunting bugs.
The original code was a real mess, come to think of it. It looks like several people worked on it separately and each added their own flavor of event handling... And, it's quite obvious they didn't test it extensively when hunting bugs.
6843
Features / Re: Selectbox
« on December 18th, 2011, 06:09 PM »
And I'm currently at... 2438.
Although the current implementation is buggy -- but less than before. The problem I'm dealing with, is that when an option is selected and I reopen the select box and use the keyboard to navigate through it (granted, it's not a 'common use case'...), the keyboard event will be fired twice, resulting in the list navigating down two items instead of one. And it will be fired one more time per close/open operation. Yeah, that does mean one of the events is NOT correctly deleted but for the love of Einstein I can't figure out why (I'm now down to just ONE keyboard event being set instead of 3 or 4...)
I'm sure I'll find out. And then I can finally commit all of my changes. :P
Although the current implementation is buggy -- but less than before. The problem I'm dealing with, is that when an option is selected and I reopen the select box and use the keyboard to navigate through it (granted, it's not a 'common use case'...), the keyboard event will be fired twice, resulting in the list navigating down two items instead of one. And it will be fired one more time per close/open operation. Yeah, that does mean one of the events is NOT correctly deleted but for the love of Einstein I can't figure out why (I'm now down to just ONE keyboard event being set instead of 3 or 4...)
I'm sure I'll find out. And then I can finally commit all of my changes. :P
6844
Off-topic / Re: Post count fever
« on December 18th, 2011, 05:27 PM »
And congrats on your 8000 ;)
6845
Off-topic / Re: What's your development setup?
« on December 18th, 2011, 04:30 PM »Or not, as the case may be :P
6846
Off-topic / Re: What's your development setup?
« on December 18th, 2011, 03:34 PM »
Opera, Opera! If it works in Opera, it works everywhere :P
6847
Off-topic / Re: Post count fever
« on December 18th, 2011, 03:34 PM »
Yeah it seems to me like trophy mods are popular but I've never got the hang of these...
6848
Off-topic / Re: Post count fever
« on December 18th, 2011, 08:12 AM »
Me neither, until a day ago. Then I athletically and pathetically spammed the boards :P
6849
Off-topic / Re: Post count fever
« on December 18th, 2011, 01:37 AM »
(Thanks to copy-pasting...)
And so, here it is...
My 8000th post on Wedge.org.
I'm taking this REALLY FINAL trophy with a smile, and hoping I can reach 10.000 posts before Pete does 15k ;)
Thanks to my sponsor, SpamCorp International, for their technical and logistical help in reaching this milestone. Thanks to Pete for having a slower week than usual, I could never have done it without him. (I was trailing by 15 posts or so just a few days ago.)
Thank you very much. I'll be here all year.
And so, here it is...
My 8000th post on Wedge.org.
I'm taking this REALLY FINAL trophy with a smile, and hoping I can reach 10.000 posts before Pete does 15k ;)
Thanks to my sponsor, SpamCorp International, for their technical and logistical help in reaching this milestone. Thanks to Pete for having a slower week than usual, I could never have done it without him. (I was trailing by 15 posts or so just a few days ago.)
Thank you very much. I'll be here all year.
6850
Off-topic / Re: What's your development setup?
« on December 18th, 2011, 01:30 AM »
I know people who do HTML 1.0 development on a text editor within an Amiga emulator on their Core i7.
(No I don't.)
(No I don't.)
6851
Features / Re: New revs
« on December 17th, 2011, 08:03 PM »
rev 1204
(2 files, 4kb)
* I believe the local avatar selector should be a square select box, rather than a dropdown. It makes more sense. (Profile.template.php)
* And on the other hand, these non-dropdowns should NOT be turned into dropdowns by our SB plugin. Might as well do something to 'style' them in the future, too... But right now, it's a no-go. (sbox.js)
+ Starting to get serious... All select boxes will now be transformed automatically. I have a feeling this will require a lot of work in the coming days, to convert everything as expected. (sbox.js)
* More code size optimizations. The Proto area is now incredibly short! But because of the extra code from above, final gzipped size is 'only' 5 bytes shorter. (sbox.js)
@ I'm pretty impressed by how much this file is 'optimizable' really...
(2 files, 4kb)
* I believe the local avatar selector should be a square select box, rather than a dropdown. It makes more sense. (Profile.template.php)
* And on the other hand, these non-dropdowns should NOT be turned into dropdowns by our SB plugin. Might as well do something to 'style' them in the future, too... But right now, it's a no-go. (sbox.js)
+ Starting to get serious... All select boxes will now be transformed automatically. I have a feeling this will require a lot of work in the coming days, to convert everything as expected. (sbox.js)
* More code size optimizations. The Proto area is now incredibly short! But because of the extra code from above, final gzipped size is 'only' 5 bytes shorter. (sbox.js)
@ I'm pretty impressed by how much this file is 'optimizable' really...
6852
Off-topic / Re: What's your development setup?
« on December 17th, 2011, 06:57 PM »
Hmm...
My current setup is very much like Pete's: Windows 7, Notepad2 (PHP, XML and JS files), Notepad++ (anything else, including my to-do-list), TortoiseSVN, WampServer. Nothing else, that I can think of at least.
Up until 2006, I used to be on Windows XP, Delphi 7.0 and Notepad (the original), things were simpler by then... ;)
My current setup is very much like Pete's: Windows 7, Notepad2 (PHP, XML and JS files), Notepad++ (anything else, including my to-do-list), TortoiseSVN, WampServer. Nothing else, that I can think of at least.
Up until 2006, I used to be on Windows XP, Delphi 7.0 and Notepad (the original), things were simpler by then... ;)
6853
The Pub / Re: Logo Madness
« on December 17th, 2011, 02:38 PM »
Really, at this point all fonts seen in the last couple of months are 'good' in terms of typography -- whether it be Helvetica Neue, Coolvetica, Segoe, PT Sans, DIN OT, and many others... They're all 'established' fonts that work well in display (i.e. as logo fonts). The difference is made by subtle changes in the 'default' settings, such as slightly modifying the kerning. It can break or make a logo. For instance, the DIN OT version I have works wonders in small size, it's like the 'perfect' font, but in large size I think it's slightly not as effective as a humanist/grotesque font. While with my latest test, it doesn seem to work great in full size, and work pretty nicely too in small size... That's why I bothered to bump the topic after spending some time dormant :P
6855
Features / Re: Selectbox
« on December 16th, 2011, 07:21 PM »Now we're about at 3150 bytes, so that's over 500 bytes less than when I got started. I hope I can actually remove even more...