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
4141
Features / Re: New revs
« on November 11th, 2012, 07:44 AM »
rev 1777 - I think this one holds the record for highest number of changes that seem to fit into 1KB...
(7 files, 1kb)

! Various fixes to the stats page layout. Adding an extra div container is a bit of a cop-out, but there are few alternatives until we drop support for shitty old browsers like IE 6/7. (Stats.template.php, index.css, sections.css, extra.ie6/7/8/9.css)
4142
Off-topic / Re: LG Nexus 4
« on November 10th, 2012, 08:22 PM »
Quote from Dragooon on November 8th, 2012, 03:36 PM
S3 mini has nothing of a S3 besides it's looks, so be careful there.
I know... But if a phone looks ugly, I'm not excited about it. I'm not excited with the Razr i because it doesn't look/feel great in my hand... (Or worse, the Motorola Razr HD.)
I like the S3 Mini's looks.
As for power... I don't know if I need a nuclear plant in my pocket, see..? Maybe the S3 Mini is enough for me.
Then again... It's probably a tad expensive just for the looks.
Quote
How is it the Note II bewitched you but Razr HD is too wide?
Note II is definitely too wide. But it feels great in my hands (very sensual if I may say...?), plus the S-Pen is fantastic. It's the only smartphone I know of that supports :hover in CSS...! (Just have your pen close to the screen, anything below it will get the hover effect... I tried here!)
I tried the Razr HD and I just thought it wasn't too exciting or innovative, from what I could see.
Quote
:P. You should try holding a Nexus 4 when it comes out,
I've tried the Nexus 7, not the same I know, but I liked it. Except for the screen. Even in 720p, it's a bit... pixelized.
Nexus 4 has a big issue to me: it doesn't have a SD slot. It's a no-go then... I absolutely need the SD slot. I listen to tons of music on my devices. My iPod 4 with 32GB is already too small for me...
Quote
it feels better than some of the existing options although it's about as wide as the HOX. How does their width bother you? You can't hold them comfortably and access the screen or is it something else?
When I close my hand on my phone, it has to fit exactly between the center of my palm and my intermediate phalanges, so that I have a perfect grip of it, and full freedom to use my thumb on the screen. Plus I need to be able to access the entire screen with the thumb. If I have to use two hands for that, it's too big for me.

So, from what I can see, the best width for me is around 60mm (like the Razr i, or a bit wider than an iPod), although I've held ~64mm phones that were pretty okay, such as the Xperia S. (And yes, the Xperia S doesn't have a SD slot IIRC, so it's hard to consider it...)
After trying a 65mm phone like the One S, it started feeling awkward. The Xperia T was even harder to hold. The S3 was quite obviously impossible to hold like my iPod. It's pretty much the same as holding a Note II, so between the two, I'd probably prefer the Note II.

Plus, the Note II doesn't have the deal-breaking feature that the S3 has: when you scroll something (whatever, settings page or web page), and you release your finger, you'll see the screen scroll itself automatically quite fast, then suddenly stop and keep scrolling very slowly for like half a second. It doesn't sound terrible when I say it, but once you see it in action, it's hard not to take this into account. The Note II seems to fix that. I NEVER was able to find a website discussing this. It looks like no one on the net has ever noticed that. And yet, everytime I showed this to other people with a S3 in hand, they admitted that it was odd.
4143
Development blog / Re: It only took two guys two years...
« on November 10th, 2012, 08:09 PM »
Quote from emanuele on November 2nd, 2012, 04:21 PM
Good news!
Congratulations!
Wanna have a look at it? ;)
4144
Archived fixes / Re: Minor glitch on 'thoughts'
« on November 10th, 2012, 08:08 PM »
This one is fixed, right..?
Posted: November 7th, 2012, 12:59 AM

Asking again... Fixed or not?
4145
Features / Re: New revs
« on November 10th, 2012, 08:07 PM »
rev 1776
(2 files, 9kb)

* Rewrote the Homepage to categorize sections and allow admins to disable them one by one by setting related variables to false. All that's left to do is to move the latest topic code to Home.php instead of the template. (Home.php, Home.template.php)

@ As a reminder: $settings['default_index'] must be changed to 'Home' if you want to see the Wedge.org-like homepage on your site.
4146
Features / Re: New revs - Public comments
« on November 10th, 2012, 07:06 PM »
It's just something I never got around to fixing before...
Fact is, it's a bit odd that item descriptions don't show this bug, even though they were handled in a similar fashion... :-/
4147
Development blog / Re: It only took two guys two years...
« on November 10th, 2012, 06:43 PM »
Quote from Arantor on November 2nd, 2012, 04:01 PM
You're trying to quote Doctor Who, but neither I or Nao are the Doctor. ;)
...Or at least until proven guilty!
(Silly humans!)

@JPAnderson> It's not too late ;)

Plus, as I said earlier, we'll end up releasing a Public Alpha at some point..!
4148
Archived fixes / Re: Session writing
« on November 10th, 2012, 06:41 PM »
- I don't think APC is installed or at least enabled. It doesn't show up in the phpinfo stuff.

- Hmm yeah, westr_foundation doesn't show up when the error happens, it's not that I forgot to paste it or anything. (The 102 first entries are regular PHP classes.)
Posted: November 10th, 2012, 06:03 PM

Could the main difference between westr_foundation and wesql/wetem be that it doesn't have a __construct() magic function..?
I don't know.

It's indeed quite odd that westr_foundation itself isn't registered, but its descendants are... :-/

Still, it's a server-related problem, I'm pretty sure. Must be somethin' with the PHP version... I don't know.
4149
Features / Re: New revs
« on November 10th, 2012, 06:17 PM »
rev 1775
(6 files -2, 2kb)

* Set show_gender to enabled by default. If for some reason you don't want to reveal your gender, you're absolutely free to set it to undefined in your profile... (install.sql)

! Have user_status's gender box follow the show_gender setting, removed gender icons, and the Gender profile line (instead it's all in the user status box now.) Should we keep the icon files for other themes to use..? Finally, simplified user context's gender variable to just hold the gender instead of an obscure array. (Load.php, Display.template.php, Female.gif, Male.gif, PersonalMessage.template.php, Profile.template.php)

@ Added reminder to self or Pete that we should work on some stuff... Or whatever. (ManageMembergroups.template.php)
4150
Features / Re: New revs
« on November 10th, 2012, 05:55 PM »
rev 1774
(1 file, 2kb)

- Committed a working copy by mistake. (index.css)

From rev 1773, forgot to mention it:

* Optimized space saving on !important and content rules in Wess. (Subs-Cache.php)
4151
Features / Re: New revs
« on November 10th, 2012, 05:02 PM »
rev 1773 -- all of my recent bug fixes... I should really work on submitting them one by one!
(9 files, 13kb)

! Fixed blank page crashes on servers where shell_exec() is disabled and load averages are requested. (Load.php, ManageServer.php)

! MySQL's Truncate doesn't support multiple tables. (ManageMaintenance.php)

! Fixed line breaks being turned to HTML tags in album descriptions. Well, that was an unexpected bug... And the fix is even less expectable. Please test. (Aeva-Gallery.php)

! Fixed odd crash on PHP strict mode. Well, it's not so much the bug that's odd, rather the fix itself... (Class-CSS.php)

- Removed a few unused globals. (Class-DB.php, Class-String.php, Load.php)
4152
Archived fixes / Re: Session writing
« on November 10th, 2012, 04:12 PM »
Nope... Didn't work a bit. Reproduced the bug, moved loadDatabase() to index.php, even manually added the wesql::getInstance() before loadDatabase(), and it STILL gave me the same error. And it's always caused by Load.php::sessionWrite(). It doesn't seem to remember the wesql class at all... Although it DOES remember $user_info and other globals. That's quite odd.

There may be a hint though: it looks like sometimes, the sessionWrite function is executed twice at the end of the flow... (?)
And it only generates the error on the second call.
But sometimes it's also only executed once, and then generates the error.
Posted: November 10th, 2012, 03:58 PM

Forget what I said, it's never executed twice...

So, I did a get_declared_classes() when $user_info['is_admin'] is on.

Normal execution:

 ...
    [103] => wetemItem
    [104] => wetem
    [105] => wesql
    [106] => westr_foundation
    [107] => westr_entity
    [108] => westr_mb
    [109] => westr

Failed execution:

...
    [103] => westr_entity
    [104] => westr_mb
    [105] => westr

So... It's interesting that both wetem and wesql are seen 'differently' and don't always remain in scope while westr is always seen.
Any clues, Pete...?

Also, very very oddly, it seems like IE9 NEVER shows me the error... (Which is why I thought it couldn't be reproduced.) Chrome does.
Posted: November 10th, 2012, 04:05 PM

Meh... I really don't see any differences between how westr and wesql are declared.
I've removed a couple of globals that are declared but never used in __construct and getInstance, but I don't think it's got anything to do with it eh...
4153
Archived fixes / Re: Session writing
« on November 10th, 2012, 09:20 AM »
Hmm... Looks like I can't reproduce the error this morning. Fun.
4154
Archived fixes / Re: Session writing
« on November 10th, 2012, 12:27 AM »
Strangest thing ever...
Added this at the beginning of the function.

if (!class_exists('wesql'))
loadDatabase();

Guess what? Now the page crashes on loadDatabase's wesql::getInstance() call.... :-/

I'm not exactly sure what you mean by scoping in this case.
Also do note that it really happens only once in a while. On every single page the sessionWrite function is executed, and if I do echo class_exists('wesql'), it'll return 1... Except for the times when it returns false, and then the error message.
4155
Archived fixes / Re: Session writing
« on November 9th, 2012, 05:17 PM »
I see it all the time I look for it... I think it happens after some delay, when it has to recreate the session or whatever.
Thing is, even SMF 2.1 still has the same code. Maybe it's an issue on my server configuration...?

I guess we could test for wesql, and if not found, call loadDatabase() or at least do a getInstance() on it...?

:edit: I'm getting it on every page, actually... Maybe I can trace it then.
:edit: Nope... Third time was the charm :(
:edit: Seems to occur about 1 time out of 3 or 4... Maybe related to garbage collection or something..?