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 - Arantor
3631
Features / Re: New revs - Public comments
« on April 25th, 2012, 06:42 PM »
It's nice to see loadLanguage using arrays :)
Quote
BTW, you didn't tell me whether you thought it'd be best to rewrite number_context to use an array directly?
Oh and we could for instance put a string instead of an array, and that would mean 'no special treatment' (i.e. always '_n'), meaning that instead of doing sprintf() on strings, we could directly call number_context even if we don't have special treatment for them in French or English -- because it doesn't mean other languages won't need it...
Actually it could be better to use an array like that. The thing is, the sprintf does actually inject the value in, so even on _n cases you'd still have to always inject it, no?


Regarding 5.4's inclusion of array syntax... it's an interesting choice but one that I personally would have put into PHP sooner if given a choice, putting it at a .x release makes that quite hard for a language construct; things like namespaces in 5.3 is a feature not a language construct and it's not so hard to get your head around that as a requirement. But as a language construct, I think it should have been pushed into the next major release, not a minor one, personally.
3632
The Pub / Re: Number of 'online users'
« on April 25th, 2012, 06:35 PM »
To answer your question, no, it couldn't because the table needs to contain everyone that's online at present, whether the online log is populated with lots of detail or not. (It has other uses than simply being the list of who is currently online at present)
3633
Features / Re: Multiple default skins?
« on April 25th, 2012, 06:32 PM »
Liking your own post, it's something the code never cares about, but since there's no configuration for it at present, that's the sort of thing that would typically be configurable ;)

You're right about session variables, and IIRC they expire after 20 minutes in SMF/Wedge by default. Though I should note I have made distinct noises about removing sessions for guests across the board (because I don't think you really need much in the way of sessions for guests for the most part, and the rest is just for snapshots of analytical information, rather than meaningful information, IMHO)

I'd rather avoid cookies for that sort of thing, laws aside, just because they have a habit of living longer than expected, and carry an overhead per request.
3634
Features: Miscellaneous / Re: Gravatar support
« on April 25th, 2012, 06:21 PM »
True, but it's a way for unregistered users to be able to have an avatar, and one that's pretty consistent across blogs.
3635
Features / Re: Things to do before the Mayan apocalypse: general
« on April 25th, 2012, 06:20 PM »
That's mostly a UI matter rather than code, since the code level can pretty much already handle that.
3636
The Pub / Re: The Cookie Law (in the UK at least)
« on April 25th, 2012, 06:19 PM »
Their view is that the browsers do not currently have the functionality they want (but they are pursuing the browser manufacturers separately)

Even IE4 had that functionality, in fact, to offer to prompt for every cookie, but it's been the default not to ask for years, which is where we are now.

Most users do not understand the consequences of cookies, which is why the ICO feels it needs webmasters to reconsider the cookies they use and whether those cookies are even needed.

I'm increasingly taking the view that Wedge need not issue a cookie for guests at all, since all that really gives you is mostly meaningless tracking information (and some potential per-session caching, but for guests that's mostly avoidable anyway!)
3637
Features: Miscellaneous / Re: Gravatar support
« on April 25th, 2012, 06:17 PM »
I guess you don't go around WordPress blogs much?
3638
The Pub / Re: Number of 'online users'
« on April 25th, 2012, 06:16 PM »
Quote
Cheer up, I like what you are doing with wedge and your thoughts on giving up are not worth contemplating.
They certainly are. It's because of people like you that I have spent the past 3 days avoiding this forum, with pretty much all desire to contribute removed.
Quote
Also if my idiot level questions annoy or take away from the discussion please remove or ignore them. It won't bother me at all.
Asking questions is great, because it pushes me to explain why something is or is not so, which means everyone benefits through a better understanding (and it can often cause me to look at an issue differently, which is also a good thing)

I won't remove posts or prevent people from expressing an opinion. Where it gets frustrating is not because people don't understand, but where people think they do and keep perpetuating incorrect information and won't be corrected.

Anyway.
Quote
In other words, effectively a short-term "cookie" held on the server but as a database record? That actually might be far more accurate than the current system in which case I'm in favour.
Um. Same thing as what's there currently.

I see that people are getting a bit confused.

What is a guest?

A guest is a user who is not signed in.

What's the difference between a user who is signed in and who isn't?

The type of cookie they have going back and forth, and a number set in a couple of places.

Wait, what?

All users, guests and members, transmit session information back and forth. The session identifies that the current page is being requested as part of a series of requests that a given 'unique user' is making. This session may be passed via URL, or more commonly passed back and forth by cookie.

Guests get one type of cookie, the PHPSESSID cookie. Members get another type of cookie, WedgeCookieXXX[1]. Both cookies principally carry the session id back to the forum.

By counting the number of active sessions, we can tell how many users are online. Specifically, we check how many sessions are members, and which of those members are unique (e.g. one member having two sessions is counted once), and then we check how many guest sessions there are.

There is where it starts to be a problem: the number of guest sessions is only tenuously connected to the number of actual people browsing the forum at any one time. Search engines inflate that number, as do previews, certain kinds of pre-fetch/web performance optimisation plugins, and other things.

Now, sessions are stored and tracked in two different database tables. The exact structure of these does not matter for this purpose, other than the fact that we have a session identifier being passed back and forth to attempt to uniquely identify how many users there are.

OK, I understand, so what exactly are you proposing?

I'm suggesting to stop tracking sessions for guests at all. Everyone else who fixated on certain things missed the point.

Not tracking sessions for guests has a lot of consequences.

There are some quick things that sum it up:
* Performance grows, by a non trivial amount. Bandwidth is also saved both ways on every page for guests.
* We get SEO benefits by never having to deal with PHPSESSID cookies again. This also has consequences for the EU cookie law, of course.

There are some huge things that may or may not be a problem.

* We lose the ability to see how many 'guests' or 'search engines' are online right now. This means we lose the ability to display this not-particular-accurate number to users, or to show it historically. For users who don't have much activity, this is actually probably a boost, not a problem, because it's often better to say nothing than to show a figure of how quiet things are (certainly one forum I have been associated with recently has this exact problem)

It does also discourage people who want to fake the number to show it to people.

* We lose the ability to see what guests (and search engines) are doing right now. I'm not convinced this is a particularly useful piece of information, seeing what different things people are looking at - because it's only what people are looking at right now. It's just a snapshot of the last x minutes, not a rolling figure, nor a historical study. It's like trying to analyse traffic patterns on a motorway from a single photo: it gives you an idea at that precise moment in time, but that may be completely wrong, or it may be completely spot-on, though more likely wrong.

Now, before we got bogged down in splitting hairs over untrackably small quantities of resource, the requests are logged on any competent host (or turned off if it is not desired) - that log is processable via awstats or other analytics packages. Those who feel very strongly about it will use Google Analytics or similar anyway, and those who don't almost certainly won't care either way.

All in all, in my view, tracking what guests are doing right now is an unnecessary duplication of work, at the wrong level.

For those of you who do actively chase that stat, or actively peruse Who's Online, what is it you're looking for? What is it you're hoping to achieve, exactly, by studying Who's Online for guests? (I want to know what you hope to get out of it, and whether you actually get that information. Are there any alternatives to that information?)

Note that this, if implemented, would also play into the 'number of people currently viewing a topic' or 'viewing a board', since this is something that is pretty much all or nothing to implement.
 1. The number here is determined when first creating the forum. Do not worry about how it is made, it doesn't matter for this discussion.
3639
The Pub / Re: The Cookie Law (in the UK at least)
« on April 25th, 2012, 05:50 PM »
OK, so let's back up a minute.

The PHPSESSID cookie, left alone and untouched by logins, will be removed properly. When logging in, though, SMF and Wedge both make that a persistent cookie. There's no argument on that score: it's a persistent cookie that is not being handled nicely and certainly flies in the face of any argument we can make that PHPSESSID is a valid session cookie when it stops being one.

@nend, why should you bother? That's a good question, and for now I don't think you have to be too concerned if you're based entirely outside the EU. That assumes the US do not introduce any forms of sanction, and I wouldn't put it past them, because then a user in the EU could complain to their national body and they can take it forward on that user's behalf. So in that respect, you don't have to be too bothered - for now.


Assuming the ECL cookie is set, there is nothing in the guidance about it being a session cookie from what I remember, and it does seem overly onerous to make it such, particularly if there is a persistent cookie of any form present.

My take on it is that if cookies are provided that the site is expecting (e.g. the member cookie or PHPSESSID), we can assume that consent must have been provided in the past and not require that extra cookie.
3640
Archived fixes / Re: Time offset (auto detect)
« on April 25th, 2012, 05:44 PM »
Quote
Then at least getting the timezone approximately right would be better than nothing I suppose...?
If 'getting it approximately right' is acceptable, why bother with timezones anywhere and simply just use time offset? (I could just ignore the server time, force it set to UTC, not have a server time offset and just simply have everyone set their own time offset from that, but that would be unpleasant)
Quote
Then again, I registered on a phpBB website today, and it had a timezone list, and oh hell, the actual option values are *timezone offsets*... Which is not exactly great for daylight savings
Oh, I didn't look at the actual options in a phpBB website registration, but the presentation is still very much the same thing. (And DST is why time offset is fundamentally broken.)
3641
Features: Miscellaneous / Re: Gravatar support
« on April 25th, 2012, 05:32 PM »
I just figured that Gravatar was one of those things that isn't a lot of effort to support, and does allow for avatars that are uniquely tied to an account - so there's an element of consistency everywhere, especially for blog type support.
3642
The Pub / Re: Database Backup, Restore and Repair
« on April 25th, 2012, 05:26 PM »
SMF's dumper had two main problems, and a few subsidiary ones.

Firstly, yes, it attempted to staunch the timeout, but it never reserved enough memory and especially when gzipping, it would frequently hit memory limits and truncate the backup. (That's the biggest problem.)

Improper handling of special characters is another, and one that we have fortunately simplified in Wedge's case by only having UTF-8, but even that is not really a suitable approach.

I find it interesting to note that even WordPress does not itself offer a DB backup facility, though it does allow for an export facility of sorts.

If I were interested in providing a DB backup facility, I'd bundle functionality and data together, I'd put members+permissions+groups together since odds are that would not be too huge a set of data. Then I'd bundle boards+topics+messages but that's very likely to be the hugest part of data anyway, by a large majority on most sites.

Incremental backups would be tricky to perform since while the messages table has timestamps, you have to contend with both new and modified timestamps, and the fact it is implicitly tied to the members table which would also need to be handled incrementally to make that work.

You're ultimately better off contending with a more dedicated tool - like phpMyAdmin.
3643
Archived fixes / Re: Buffer hook never called
« on April 25th, 2012, 05:22 PM »
That unease is common to both myself and Nao, as it happens, I'm wary of poking at Aeva code for that reason.

I had a feeling it was broken for a while (because WedgeDesk uses/used it and it didn't work) but I never got round to digging into why.

Good to know it's fixed though.
3644
The Pub / Re: Bloc Madness
« on April 25th, 2012, 05:21 PM »
I had nothing to do with it; as the logs will show, I didn't visit at all between 22nd April and today. I think it's nice to see that he's re-instated some of the themes, but some of the commentary on sm.org is non too flattering either, like the people who paid and were without any form of access for months, or the fact that they believed they were paying for premium products and access, some of which are now available to everyone.
3645
The Pub / Re: Number of 'online users'
« on April 22nd, 2012, 02:07 PM »
Quote from lazyt on April 22nd, 2012, 03:19 AM
Quote: "And the mythical number of current users, which is skewed anyway for a bunch of reasons."

Ok I admit I'm the bottom of the forum coding knowledge heap. Could you please give me some examples of why these are slewed? I have never liked them and never trusted them. This way I could have some ammo when one of the mods is gushing about them.
First up, search engines often send multiple separate bots to visit the pages at once. Then you have Google Preview which will view pages without the user going there (which is also logged)

Also note that you can't really use IP address to identify users that are using (non-Wifi) mobiles because they're pushed behind proxies at the ISP level in the cell towers, meaning that you're only tracking a more limited number of users at the ISP level, not the user level.
Quote
You need to chill out and see a doctor lad.
You seriously have some constructive issues.
The only reason I'm so pissed off with you is because I'm that fed up of having to wade through your posts where you provide your opinions that I demonstrate are wrong, and you keep dredging up the same misinformation, and you keep disrespecting me by not reading what I've written over and over and over.

Take the discussion over the Cookie Law, most of the points you raised (repeatedly) I'd already raised for discussion with the ICO, as I pointed out to you many times and you still kept trying to make your point. I heard you the first time, I told you why I disagreed with your view and said I'd referred it to the ICO for discussion, yet you kept rambling on.

I have no constructive issues with people that are constructive in themselves, which you are not at this time. Do you see me railing at Nao? Or at live? Or at anyone else who can actually read what's been said and not keep dredging up the same things over and over?
Quote
If you are going to flame every negative point like you know best, then why ask/raise the question in the 1st place.
Even stating in your "thoughts" its a debate raises the concern that you can't even handle a debate.
No, I can handle a debate just fine. What I can't handle is people who think they know what they're talking about, who don't understand the question being asked, as evidenced by their post that is misleading and confusing, and for them to keep going over and over and over the same points without actually understanding what's been said to them. In other words, it's not the debate I can't handle, it's basically your attitude.
Quote
No point in being inventive when you can't take on board ideas of other people without being a complete dickhead in your replies.
If you wanna sit there and think you are better than me. I will prove to you that you ain't.
I don't appreciate anyone talking down to me and that's something you need to think about when you talk to others!
I don't appreciate you posting the same misinformed diatribes, nor do I appreciate you replying to what you think I've said rather than what I've actually said, nor do I appreciate you trying to tell me how to do my job. If you want to prove me wrong, prove me wrong with evidence.
Quote
And trust me when I say that...... If you go around thinking everyone is a muppet then your deluded and the real muppet is the one with the vision that blurs reality.
I go around taking the view that people are muppets and then I get to be pleasantly surprised when they're not, as opposed to thinking the best of people and being proven wrong. I had years of thinking the best in people and years of continual let-downs. These days I don't have continual let-downs, I have the occasional flash of being pleasantly surprised. Not a surprise here though.
Quote
Also the points you lay out to me I never correct you on the actual mistakes you make.
You contradict yourself a lot on your OWN statements and I will be happy to point them out to you.
I'd love to see where that's true.
Quote
Awstats does use resources, END OF. Whether them resources are used only in use.. It uses resources.. The fact its running and installed on your machine uses resources. Even IDLE programs USE resources.. Correction SIR. You ain't right!
Also some people disable logging of a lot of things like images, css, js files to decrease the size of the access logs as they can take GB's of data.
If you noticed, I actually acknowledged that fact. But the resources used in processing the log are still fewer than the resources that will be used in handling the guest log in Wedge.

It also depends on your definition of resources. In the case of awstats, it consumes space on the host that does not come out of your allocation if you're on a shared host, and its processing is not counted towards your use of the server, so on shared hosts it consumes no resources that you have to account for. Of course on a VPS or better it will make a difference but then, it's up to you if you install it and if you don't (like I don't) it's not consuming any resources.

Also note that disabling logging of CSS or JS files actually improves the ability to identify users in the action log, not decreases it, but thanks for pointing out something that for the sake of this argument is irrelevant.
Quote
What compelled you to feel the need to flame this statement when what I stated was correct yet you had to add your little extra onto it.
Except that it wasn't. I'm fed up of wading through your points trying to find the parts where you're actually correct, because for the most part you're at best half correct.
Quote
For one you don't even know me. Yet you are fast on the trigger of your perception on thinking you can talk down to me.
If you have something to say.. Then say it with the knowledge, that what you do will come back to you.. Its as simple as that.
You're right, I don't know you. Odds are I'd probably think slightly better of you if I did. But since I don't know you, I can only rely on the things you post. And given that pretty much every post of the last day or so has been regurgitating what people have said and adding your own misinformed view onto it, without considering what's been said, I can only conclude that you shouldn't really be operating a website and certainly not a discussion forum, because you show me more disrespect than you claim to have gotten back from me.

But on the other hand, you don't even know me. You are also pretty fast on the trigger of calling me out, but consistently you do so without anything correct to back it up. What I do will, and has, come back to me in the past. That's something I'm more than prepared to deal with. I doubt you can say the same.
Quote
If you think for one second I will allow you to disrespect me.. Come again..
I allowed you to keep posting, which is showing you more respect than I think you deserve. When you start showing me respect, I'll start showing you some.


But maybe you are right, that I have some constructive issues. Maybe I'm projecting my faults onto you (doubtful, but it is possible), and for the second time in the last 18 months, I've considered resigning from my position here at Wedge. I've had to give up a considerable amount of things in that 18 months in order to work on Wedge, and in that 18 months I never regretted it, not for one moment, because I believed in what I was doing, but last year I considered resigning because I had enough stuff going on in real life that I couldn't give Wedge what it deserved.

Now, I'm in a similar boat, that I don't feel I can give it what it deserves, but at the same time I'm also for the first time in 18 months regretting every working on Wedge. I've met some awesome and fantastic people, and I'm proud of what has thus far been produced, and what has been achieved, but at the same time if the price I have to pay is dealing with disrespectful, misinformed people (who, frankly, have done nothing to vindicate themselves of the designation of idiot), that's perhaps a price too high for me to pay.

I had hoped that after I had a drink and a sleep that I might feel better about things, but whatever motivation I had is fast disappearing, and I can very quickly and readily go elsewhere and do what I do, for money and in all likelihood almost as much satisfaction - and none of the crap to put up with.