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
3061
Features / Re: Like types?
« on July 5th, 2012, 03:23 PM »
It certainly can be done, and I've seen it done even for SMF with this, but as far as being a guest incentive, no.

I'm not entirely convinced this should be in the core though, minimenu or not. Simple like in the core, something like this as a plugin.
3062
Features / Re: Media boards: fishing for opinions
« on July 5th, 2012, 03:16 PM »
I'm honestly thinking we don't need to change the topic id column at this time, just because I don't know any forum that is going to get anywhere near it - and again, if they are even remotely close to it, they're going to run into other problems long before that which require us taking a look and helping optimise it anyway, and we can deal with scaling it closer to time.
3063
Archived fixes / Re: Moving text within a post
« on July 5th, 2012, 03:14 PM »
In which case we'll need to figure out why it's grabbing events it shouldn't be ;)
3064
Features / Re: New revs - Public comments
« on July 5th, 2012, 03:00 PM »
I have no issues with them being open source, provided that you're happy to keep on top of what comes in and make sure that any changes don't conflict with what Wedge is doing, really.

I still think it's likely to eat time trying to keep everything in step if we're not careful, but other than my usual cynicism about workloads, no objections :)

I find WeCSS better than LESS to deal with.
3065
Archived fixes / Re: Moving text within a post
« on July 5th, 2012, 02:57 PM »
That's very likely related to the attachments plugin and probably wouldn't occur in base Wedge.
3066
Features / Re: Like types?
« on July 5th, 2012, 02:56 PM »
I've seen it elsewhere and while I find it interesting, I can't shake the feeling it should be a plugin rather than core.
3067
Features / Re: New revs - Public comments
« on July 5th, 2012, 02:35 AM »
That works, I guess...
3068
Features / Re: New revs - Public comments
« on July 4th, 2012, 11:04 PM »
Quote
But the alignment was probably something I cooked up because at the time it couldn't be dragged away.. I don't know. I think it was because of that. I think I implemented dragslide() after writing the initial code. Then I just forgot to consider centering it...
Heh, I know that feeling.
Quote
One of my goals (which I'm unlikely to achieve though) is to ensure that as many UI elements as possible are harmonized.
A fine goal :) Though I wouldn't worry about trying to reuse styles - I think it might be better to keep them separate but well documented, so that a theme which wanted to change everything could do so and require a shade more work than a theme that doesn't. As long as they're consistent, they don't have to reuse code - I can see it would likely make things worse to forcibly try to reuse code like that.
Quote
Ideally I would release the select box, zoomedia and popup code as separate components on github and offer people to help improve them (along with WeCSS). I just don't know whether it'll stick with them.
I'd probably be inclined not to, not because of my usual fears etc. related to such but simply the maintenance aspect about how much work it would take to de-integrate then re-integrate it later with updates etc.
Quote
I haven't seen it in a while, but I've made the shadow a bit more obvious, and added boldness to the titles. Is that better now...?
Works for me :) It is much more clearly contrasted now :)
3069
Features / Re: New revs - Public comments
« on July 4th, 2012, 05:44 PM »
Loving the new popup in r1627 by the way. I like it even more than the lower-right-corner alignment (which is something I never thought would happen)

What I will do then, now we have the newer shinier version of it, is migrate the PM popup to use that - that was really what stopped me from changing the PM popup to use reqWin before was that the alignment of it seemed strange given the context, but putting it like that will work well.

I'm amused to note that some months ago I mused on doing exactly that: putting the popup info in the middle of the screen, though originally just for the PM, in http://wedge.org/pub/6943/pm-popup/msg268865/#msg268865
Posted: July 4th, 2012, 05:33 PM

One thing that does occur is that depending on what else is going on it might not be obvious enough. XenForo, for example, does their popups similarly, but adding something like a 10px border plus a massive shadow - personally I find that a bit much, but it definitely shows some contrast to the background.
3070
Features / Re: Changes to profile_execute_on_save
« on July 4th, 2012, 01:09 AM »
I agree certainly with the last two points, because that means you can handle saving, as well as throwing back errors etc.

Renaming? Yes, it would be nicer that way.

As far as making it a hook goes, yes, that's the sort of thing that should be a hook but the way it appears to be implemented could get interesting since it requires the ability to be able to selectively remove an item from the chain.

Off the top of my head I forget exactly how the hooks array ends up being, whether it is feasible to have hooked functions that function like that. Also, there is one stated use of that hook, which is what all the effort goes to - the question I have is what priority the existing hooked function should then have?

Basically, Profile-Modify.php lines 755 adds a function to that stack to reload the user if we're making a change and the current user is the user being changed (so we forcibly update the user information), but I would imagine that needs to be pretty much the last thing we do, no?
3071
Features / Re: Database field formats
« on July 2nd, 2012, 04:44 PM »
Quote
I would consider using MEDIUMINT UNSIGNED for all fields.
Except for where we have to have signed fields. Which is more than you'd think. And there are quite a few places where INT is still required too, like timestamps.
Quote
There shouldn't be a performance difference, the only advantage you get is a slightly smaller table size (25%)  by using MEDIUMINT instead of INT.
Except for the fact you don't just get a smaller table, you get smaller indexes too. And that does make a difference for querying times.
Quote
The number in parentheses (int10) in a type declaration is the
display width, which is unrelated to the range of values that can be stored in a data type.
Yes, I already mentioned this.
3072
Features / Re: Database field formats
« on July 2nd, 2012, 04:21 PM »
First of all, do not be too concerned about the number in brackets. It is primarily a display setting from the console tool, for setting how many columns should be used for displaying the field. If the field requires 5 columns but can handle 8, it'll store all 8 but it will attempt to use only 5 for displaying.

The deal, really, is the column type itself, and I'll actually grab the code from a helper function I put in the packages DB stuff:

Code: [Select]
case 'tinyint':
$type_size = $unsigned ? 3 : 4; // 0 to 255 (3) vs -128 (4) to 127
break;
case 'smallint':
$type_size = $unsigned ? 5 : 6; // 0 to 65535 (5) vs -32768 (6) to 32767
break;
case 'mediumint':
$type_size = 8; // 0 to 16777215 (8) vs -8388608 (8) to 8388607
break;
case 'int':
$type_size = $unsigned ? 10 : 11; // 0 to 4294967296 (10) vs -2147483648 (11) to 2147483647
break;
case 'bigint':
$type_size = 20; // 0 to 18446744073709551616 (20) vs -9223372036854775808 (20) to 9223372036854775807
break;

So, there's your ranges for each of the columns, including the typical number involved for column sizes (just because the create/alter table statements *need* a size)


There are problems with using even more than a couple of thousand boards, let alone tens of thousands, and they all revolve around how board access is handled - throwing even a few hundred values into a WHERE ... IN (...) clause is not pretty, doing it for thousands of boards even less so. I've been thinking about this a bit, and have come to the conclusion that maybe we need to rethink how board access is physically implemented - perhaps we need to rethink {query_see_board} as a subselect.

Thing is, this limit is still present whether albums are boards or not, assuming query_see_board is still used to figure out access to them. It's just less noticeable.

Realistically, any forum that's big enough to be hitting 64K boards is also likely to have other problems and need support from us before it gets there anyway, in which case we deal with it before they get there.

Expanding id_group is no issue in itself but we need to rethink additional_groups in that situation. Unless I've been asleep for a long time and it's changed and I wasn't looking, it's done as a textual column in the members table, and there were issues in the past with it being truncated. I can't remember if we expanded that or not, but if not, we need to at least do that.

Lastly, performance. It's always a tough call but generally speaking, using the smallest size possible for your columns is considered to be the best approach. It keeps the table smaller, more importantly it keeps indexes smaller. And when you get up to huge sizes, the bottleneck becomes I/O not CPU anyway, so physically less data being thrown around = faster movement.
3073
Features / Re: Media boards: fishing for opinions
« on July 1st, 2012, 02:39 AM »
I'm already here in KY and have been to bed at least once (and now I'm actually on the right time, really, I was going to bed/getting up in American time for a while!)


OK, let me tackle the limits stuff first, since that's the most pressing matter from my perspective. mediumint(8) allows for something like 8.3 million topics, even if it's signed (16,777,215 if unsigned), now I can't imagine a forum having that many topics + attachments. I've never seen any forum except Gaia Online get to the realm of millions of topics, even if they get to millions of posts.

But also consider how many media items you'd have to have to get to that stage, and more importantly how big they'd be. Even at 1KB each, you'd be in to the GBs of storage to cope with it.

On a wider scale, though, you also have to consider that if you have to actually consider many millions (more than a mediumint can hold), you might want to be considering the next field up from an int, which is a bigint, and that causes *many* more problems. Going over the 32 bit threshold is a potential problem on many levels, more than you really want to be diagnosing.

But realistically, a forum that is even close to approaching that is going to require specialist attention long before they get that big, and the single biggest SMF forum I know has 19.7m posts in 520k topics (warriorcatsrpg.com), or, alternatively I looked at Nairaland which used to run SMF, which currently has 913k topics - but even so we're still talking way below the 8m/16m border. So potentially it's a non issue.


As far as the context goes, everything else you've pointed out is fine as far as I'm concerned.

Lastly, re negative ids, there really aren't that many instances of it but we should certainly look through it - ideally every time we find a case where it happens, we should add a comment to the SQL to indicate that. Once we know which columns have to remain signed, we can make everything else unsigned ;)
3074
The Pub / [FAQ] Re: Is it a friendly fork?
« on June 26th, 2012, 09:08 PM »
Yeah, I know you weren't one of those people. But there were an awful lot of applications that we simply refused, far more than most people ever knew about.
3075
The Pub / [FAQ] Re: Is it a friendly fork?
« on June 26th, 2012, 06:31 PM »
Yeah, the vast majority of beta testers were not in the 'motivated to help' category.