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
7201
Features / Re: Thought system
« on November 3rd, 2011, 11:07 PM »
Quote from Arantor on November 3rd, 2011, 04:07 PM
There's overhead whatever you do, the only way not to have overhead is to not do anything to the menu in the first place.[1]
 1. The only winning move is not to play.
<ahhhhhhhhh, that movie...>
Quote
Yup, and that's cool - provided that you are only updating one member at a time. The data field makes that a requirement, not a contextual thing. (You can update multiple rows to SET column = column + 1 in a single query, but you can't update multiple rows based on multiple criteria)
Sure.

As for the data field... I'm looking into the members table and it's pretty hard finding something that isn't used in a regular query.
Some things like pm_prefs could be transferred, but they're set through a profile array that's pretty complicated and implies saving the variable to the members table itself... I'm not thrilled at the idea of tweaking that.

passwd_flood may be a candidate. I'd like to invite you to look into it... Try a global search for it. In some situations, it's retrieved from the database, but never used later. Look inside Reminder.php for instance. My guess is that it was planned to be used in validatePassword() (again, I'd suggest looking through all occurrences of validatepassword.) This may be an actual SMF bug...

secret_answer/question is a strong candidate too. It's used in a regular query, but it's always LIMIT 1 so it's worth doing an unserialize on it every time. Same problem as pm_prefs though, for saving.

Anything to justify having this new field, really... :lol:
Quote
Pretty much all crap shared hosting (which to be fair, is almost all of it) runs the web server as www-data or nobody or apache, which means it's not writable.
Even if it's running as www-data etc, I believe there are some ways to configure the server to make it work...

I use MANY hosts in the past. Only one had issues with modifying the filesystem through PHP, IIRC.

PS: feel free to fix any bugs you find in the thought system, now that it's committed. 'Modify' doesn't work anymore, I'll look into it tomorrow.
7202
Features / Re: New revs
« on November 3rd, 2011, 10:23 PM »
rev 1146
(1 file, 25kb) (because so many lines are slightly modified.)

* Use default, not DEFAULT, to harmonize the sql dump. (install.sql)

* Turned all numeric defaults in the installer to actual numbers. (install.sql)

* Turned a few numeric fields to use unsigned, such as one-char tinyints that wouldn't even accept a minus sign: attachments:id_folder/approved, categories:can_collapse, mail_queue:private, media_albums:featured/approved/hidden, media_items:approved/last_viewed, polls:voting_locked. (install.sql)
7203
Features / Re: New revs
« on November 3rd, 2011, 09:44 PM »
And here it is... The thought system.

rev 1145
(26 files, 47kb) (now we're talking!)

+ Added the Thought system from Noisen.com/Wedge.org into Wedge. Oh yes. Needs a lot of work though, as it only barely works for now. (install.sql, Ajax.php, Load.php, Profile-View.php, Subs-Members.php, index.template.php, Profile.template.php, index.language.php, Profile.language.php, script.js)

+ Added a 'data' field to the members table, that will hold a serialized array of variables that are only used by the current user. Added updateMyData() function which will cater for it. (install.php, install.sql, wedge_api.php, Load.php, Register.php, Subs-Members.php, Subs.php)

+ Added silent support for specific categories when populating the JumpTo object. I use that on Noisen, but I doubt it'll be of any use to anyone else... But never say never. (Ajax.php)

- Removed default_personal_text, which never made sense to me anyway. It probably had some use, for some people... Not for us. (install.sql, wedge_api.php, upgrade.sql, ManageMemberOptions.php, Subs-Members.php, Help.language.php, ManageSettings.language.php)

* personal_text is now parsed for BBCode. To preserve performance, this is being done when writing said text. We could possibly force reparsing when doing changes to the BBCode but right now it seems all right for me to do it this way. I have a feeling this is going to come back and bite my ass... (Ajax.php, Load.php)

* Reordering classes in the main script file, so that they follow each other. (script.js)

* $context['user'] should hold more references to $user_info, instead of copies. (Load.php)

* Minor optimizations/layout changes/bug fixes/HTML5 tags not worth documenting. (Class-DB.php, Subs.php, Display.template.php, PersonalMessage.template.php, Post.language.php)

@ Note: Pete, the keys in the thoughts table probably need some fine-tuning... Also, many things are not implemented yet: re-tweeting thoughts (if we ever do that), importing tweets (same, obviously), properly re-attributing master/parent IDs when deleting members or thoughts, etc. We should also consider whether to delete the dummy 'data'=>'' definitions and really, *all* dummy empty strings when registering a member or things like that... Fields all have a default setting, no point in setting them IMO!
7204
Plugins / Re: Plugins I refuse to do
« on November 3rd, 2011, 08:58 PM »
How long did it take you? ;)
7205
Other software / Re: So, SMF has declared the cold war...
« on November 3rd, 2011, 08:08 PM »
Quote from pgordemer on November 3rd, 2011, 07:33 PM
Nao, are you also planning on porting the changes to the 2.10 version for the ones that paid for it? I have a bunch of customers that fall into that category.
The sitelist file in AeMe and Aeva Lite 7.2 is compatible with AeMe 2.x's. Just get the file and upload it, problem solved...
7206
Other software / Re: So, SMF has declared the cold war...
« on November 3rd, 2011, 07:29 PM »
tl:dr? Wedge rocks your socks off!
7207
Features / Re: Ideas from the oddest places
« on November 3rd, 2011, 07:27 PM »
Quote from Arantor on November 3rd, 2011, 05:22 PM
Neither do most forums, but the argument stands. And remember, WP is The Platform You Can Do Anything With,
Technically it is... But so are many others.
Quote
so various magazines and sites tell me (the rabidity of fanboyism about WP as a CMS is why I won't subscribe to .net magazine)
Oh, this strikes a chord.
Yes, there is a great amount of WP fanboyism in .net, but it's not particularly because of a secret organization or something.
The .net team is also biased towards: Jeffrey Zeldman (everything he says is The Future -- I have to admit the issue he supervised last year was excellent though, a great introduction to HTML5), jQuery, PHP, Ruby (they're trying to, at least...), and HTML5. But that's because a majority of web design agencies use these technologies in priority, and they simply discuss what people use -- because they need to sell. Web Design Magazine has the exact same scope, it talks mostly about WordPress, jQuery and PHP.
Heck, I'd say they're pretty transparent about it all. They published many a reader's letter about .net being biased, and they simply replied that they're trying to stay current. WP is what most web designers use to make websites, so they talk about it.
I'm more concerned about their biased towards ExpressionEngine. It's a paid-for CMS, not exactly cheap ($99 for the basic version), and half of their articles about CMSes discuss it. I don't see the point... I actually prefer seeing WP-related articles because at least it doesn't feel like they were paid to talk about it.
7208
Off-topic / Re: Doctor Who
« on November 3rd, 2011, 06:26 PM »
At the very least it launched Carey Mulligan's career... She seems to be everywhere now ;)

DS, hopefully you'll enjoy Catherine Tate's stint as the official companion in series 4. She's still my favo(u)rite. Donna Noble is not as pretty as Pond, she may not kick ass as much, but she's got heart and a conscience. And she's funny as hell.

You'll love the Silence in the Library double episode. Hopefully. Then... Waters of Mars. And then season 5 -- it has plenty of great episodes like Vincent & the Doctor or Prisoner Zero. Same for season 6 with The Doctor's Wife and The Girl Who Waited.
7209
Features / Re: Ideas from the oddest places
« on November 3rd, 2011, 05:18 PM »
Possibly because most blogs don't require a lot of plugins...?
7210
Features / Re: Ideas from the oddest places
« on November 3rd, 2011, 04:18 PM »
The WordPress community being the size it is, it's bound to have countless good ideas which we might be inspired to use on our side (adapted to our specific needs of course.) No problem :)
7211
Features / Re: Ideas from the oddest places
« on November 3rd, 2011, 04:00 PM »
I... do not think it's for the best.
The only thing that will make a difference to me when it comes to avatars, is finally getting rid of any possibility of loading them through PHP. (Yikes...)
7212
Other software / Re: So, SMF has declared the cold war...
« on November 3rd, 2011, 03:55 PM »
Quote from AngelinaBelle on November 3rd, 2011, 03:39 PM
I was thinking that, too.  Everybody on the SMF team seems to recognize that this was unintentional. I think that, initially, the server team saw it as DDOS.  I think your unique choice of user-agent may have helped narrow down the source of the problem.
A unique user agent is always the responsible thing to do when your software connects to some other server. (I'm just upset that I didn't think to suggest banning it when I heard about the server load issue. I only thought of banning the destination URL...)
7213
Features / Re: Thought system
« on November 3rd, 2011, 03:52 PM »
Quote from Arantor on November 3rd, 2011, 03:17 PM
Quote
Looking at some of your code in updateMemberData...
That was one of mine? Egad, looks ugly. Smells more like something that was there before and that I changed.
Ah, my bad! I just checked in SMF 2, and it's also there, so you have nothing to do with it ;)
I assumed it was your code because it's hook code, and I didn't remember writing it, and SMF has so little hook code that I just didn't even consider they could have written it.

I should have known better :lol:
Quote
I'm a fan of such things, and I'm going to be making use of such when I get to implementing the per-user sanctions (e.g. through warnings and having permissions removed etc.)
Good to know!
Any issues with the field being called 'data', btw...? That's what it is called in my local install. It's not very original and can be confusing, but at least it makes for a nice $user_info['data'] array.
Quote
Let me put it another way. Right now, one of the things I came to regret in WedgeDesk was the way the number of tickets is cached and not stored in the profile of the user. The overhead, despite caching, for that is surprising - and it has other consequences too that I won't get into.[1]
 1. Suffice to say, SSI has fun with it, and the logic around cache purging when tickets are updated is ridiculous.
Well there's definitely some overhead too for the AeMe cache and it's stored in the profile table...
Quote
and I can update it when necessary regardless for users with a single UPDATE,
Yeah, that's the thing with the data field: it's only for when you need to update one member at a time... Which is why the custom function I added for it (updateMyData(), can be renamed later) doesn't take a $members param -- it uses $user_info['id'] directly, at least for now.
Quote
Which means for a fraction of users, they have a cushy ride and everyone else is told to hit the highway. To be honest, I don't feel that's particularly acceptable, it's basically saying "I couldn't be bothered to make this work well for you." in my head.
Do you have any stats, honestly.....? :-/
7214
Other software / Re: So, SMF has declared the cold war...
« on November 3rd, 2011, 03:22 PM »
Quote from Arantor on November 3rd, 2011, 03:18 PM
The list of people who know and understand how to use the task scheduler is still in single digits, as far as I'm aware.
Which is why we need to start documenting Wedge ASAP... There are so many features we added that are barely mentioned in these forums. It'd be a shame if they weren't put to use by plugins!
7215
Other software / Re: So, SMF has declared the cold war...
« on November 3rd, 2011, 03:09 PM »
Oh, my... I didn't even take this into account. Well, at the time I wrote the feature, the sm.org server was very solid so I never experienced a downtime and didn't bother to check further.
I'm deeply sorry about this oversight.[1]

As for the task scheduler -- just like Pete said. Being backwards compatible means making choices. (Plus, I never really got the hang of the task scheduler.)
 1. Somehow, it feels like a DDOS attack sent by a guy that was post-banned long ago and wanted a late revenge.... :^^;: