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
1876
The Pub / Re: Wedge repo -- installation feedback
« on January 22nd, 2014, 12:59 AM »
I don't know. I just want to avoid having to do any boring tech support in the future. This single-handedly killed my enthusiasm in working on Kyodai Mahjongg back in 2006, and there's no reason to think I've changed.

Technically, Wedge is only officially supported on Apache, so you should disable ZendServer if you can, and enable Apache instead.
1877
Development blog / Re: That'll do.
« on January 22nd, 2014, 12:51 AM »
Are you looking for the importer tool?

Well, here it is! :cool:

https://github.com/Wedge/importer

Keep in mind, though:

- It's only tested on SMF 2.0 forums.
- Also, it comes with no guarantee, and it doesn't import any media files for now (including avatars and attachments).
- This is only there to help you test Wedge on an environment with more posts and users.

Hopefully, TE will improve the whole thing soon, or Pandos, or I'll do it, but frankly I doubt it. This is not a priority for me, I'm afraid...

I'm going to bed now. That leaves you guys unattended for about 6 to 7 hours. If you're unsure of what you're doing, just wait until tomorrow.
1878
Features / Re: New revs
« on January 22nd, 2014, 12:46 AM »
[master 9d8fdef]
 3 files changed, 2 insertions(+), 2 deletions(-)

Misc. fixes

- No need to loadLanguage('Settings') when this language file no longer exists, uh? (Themes.php)

! Pete bug: fix_accents was called through preg_replace, rather than preg_replace_callback. (Subs-PrettyUrls.php)

! The install file probably needs to make gz/app writable, too. (install.php)
1879
The Pub / Re: Wedge repo -- installation feedback
« on January 22nd, 2014, 12:00 AM »
@Farjo, are you using Xamp, WampServer or something else?
Quote from DoctorMalboro on January 21st, 2014, 11:13 PM
First of all, congrats on this release!
Thanks! Technically it's not a release, though... The long awaited Alpha 3 is coming this week, but I'm only releasing it once all server installation issues are solved.
Quote from DoctorMalboro on January 21st, 2014, 11:13 PM
It sure looks like the work of two PHP gurus, hope this goes on and on.
Yeah, I'm hoping that the more skilled users will take an interest in looking at the source code, and see how awesome it is.

For me, personally:
- Class-Skeleton.php, because (1) it's my first attempt at doing pure OOP programming, (2) the skeleton system is VASTLY superior to SMF's layer system.
- Subs-Cache.php, which has so many cool features.
- Class-CSS.php, and its wonderfully obfuscated code. Even I have some trouble reviewing it, from time to time, ah ah.
- script.js, gives you an idea of the amount of work that went behind rewriting SMF JavaScript code. I didn't simply integrate jQuery deeply into it -- I used all of my JavaScript knowledge to make the script as smooth, fast and short as possible. It's optimized *to the byte*. sbox.js is also an interesting piece of JS, in that it is superior to all the competition (jQuery plugins for select box replacements), and does it in *half the size* of the closest 'optimized' competitor (about 2KB gzipped). Again, a lot of work went into this.

For Pete -- I have to say, I think he would like to show off his ban code. Or perhaps his plugin code. He put many months of work into both of these, and it was all very carefully planned ahead. I'm pretty sure he'll push the SMF team into allowing these bits to make their way into SMF 3.0. In a few years time, then...
Quote from DoctorMalboro on January 21st, 2014, 11:13 PM
It looks quite promising, can't compare it to 2.1 yet because I haven't even take a peek at it.
Pete has been putting a lot of work into SMF 2.1, too. Sometimes I'll have a look at a list of his commits, pick a random one, and see that he's taken one of his Wedge commits, or ideas, and put it straight into SMF 2.1. It's a bit strange, considering he disavowed Wedge after leaving us. Is he trying to disavow SMF, too? :^^;:
Anyway...

Last year, Pete posted a quick list of features from Wedge that aren't in SMF. (Yes, because he loved SMF and wanted to rejoin them. I'm confused right now.)
http://wedge.org/pub/smf/8175/smf-with-a-different-name-huh/
Of course, many more features were added since then.
I'm pretty positive that despite having talented people in its team (shout out to Suki), SMF has no way to catch up with Wedge, because by the time it does, Wedge will still be more advanced, because I'll be busy catching up with myself.

I'd recommend you compare Wedge with Elk instead. Apart from the silly name, it's better than SMF in every respect.
Quote from DoctorMalboro on January 21st, 2014, 11:13 PM
Second, I got the same error @Farjo did and I also get this in the error log:

URL http://localhost:85/wedge/index.php
8: Undefined offset: 0
C:/wamp/www/wedge/gz/app/Subs-BoardIndex.php
Line: 25
Please make sure you enable debug mode in Admin > Server > Debugging (which disabled PHP minification) before you post error logs. Line numbers are useless to me if the file is minified.

Okay, I'll just disable this feature in my next commit. During alpha testing, it's unwise to make debugging harder by default... :^^;:
Quote from DoctorMalboro on January 21st, 2014, 11:13 PM
I also get random "Unable to load the "Settings.english" language file." when I use the Wine theme.
Isn't this not because of the Wine skin (not theme!), but because you're browsing through the Theme parts of the Admin area?
I should have specified: the Theme handling code is STILL in Wedge, but it will eventually go. It does NOT work, obviously, because themes themselves don't exist anymore. I just thought that you guys would rather have Wedge earlier, than wait for me to clean everything up and make it look like themes never were here to begin with.
Quote from DoctorMalboro on January 21st, 2014, 11:13 PM
Other than that, I'm quite fonding what you two achieved. Well done and congratulations!
Thanks!
I'll make sure to pass it along to Pete. (Well, of course I won't, but I'm sure he's reading.)
1880
Development blog / Re: That'll do.
« on January 21st, 2014, 10:50 PM »
Quote from Aaron Smith on January 21st, 2014, 05:15 PM
Congrats @Nao ! Now time for some of the rest of us to get our hands dirty :)
Odd... Why didn't that one get @mentioned..?
(Hmm, works when I'm quoting it...)

@Oracle, nice avatar!
1881
Development blog / Re: That'll do.
« on January 21st, 2014, 10:49 PM »
Thanks!

Addendum: a few of the things missing from the current alpha...

- Topic privacy, not working I believe. Should be easy to fix. Just can't bother, for now.
- Contact lists: you can only manage them from user profile pages. I still have to write the UI to manage your existing lists all at once.
- Contact list privacy doesn't correctly nest in thoughts.
- Notifications aren't up to the task. They'll do mentions and likes just fine, but one needs to use that system to handle topic notifications as well, and then remove 'regular' topic notifications from the codebase. Also, fix scheduled e-mail notifications.
- The Weaving (default) skin needs some more work. :edit: And by that, I'm implying that you shouldn't try doing a 'proper' skin for now, because it'll be broken if Weaving changes too much. Unless you're prepared to fix your skins later, of course. I know I would.

:edit: - Themes are removed from everywhere, except the Admin area. If you navigate to the Themes area over there, you'll get bad error messages, so... Just don't bother, because it won't work anyway.

That's not ALL that's missing, but just a few of the things I'll have to focus on, after (1) I'm done with fixing the Wedge install & run process on other servers, (2) I take some time to have fun with JavaScript again. (I'm going to give another try to responsive sidebars, now that Chrome for Android finally removed its annoying swipe overrides.)
1882
Features / Re: New revs - Public comments
« on January 21st, 2014, 10:46 PM »
Quote from Farjo on January 21st, 2014, 09:06 PM
Is there a way to receive notifications of new revs?
You can also subscribe to the RSS feed.
https://github.com/Wedge/wedge/commits/master.atom
It doesn't give you the number of line additions and deletions, though, which is a mood killer for me. I like being able to differentiate between "quick fixes" and "large commits".

Other than that, I'm planning to write some kind of script that'll use the RSS feed to get new commit IDs, then use the GitHub API to receive statistics for each of these commits, and then post them to a specific topic. This'll make a perfect candidate for a plugin, but honestly, if someone else could write it for me, I'd be thrilled... :P
Quote from Farjo on January 21st, 2014, 09:06 PM
Personally I like reading them; even though I understand very little it does give an indication of areas that are being changed / added.
And I like that people are reading them ;)
Quote from Farjo on January 21st, 2014, 09:06 PM
So one assumes that one can download those two files only and have the latest version of Wedge?
Yes. But apparently, some servers don't play nice.
I made a test install on my Wamp server, and it worked.
I made a test install on wedge.org, and it worked.
If it doesn't work elsewhere, it'll need fixing, but it's EXACTLY the reason I needed to go public at some point... Because there are more setups out there, and they need to be accounted for.
1883
The Pub / Re: Wedge repo -- installation feedback
« on January 21st, 2014, 10:38 PM »
http://dev.mysql.com/doc/refman/5.5/en/blob.html

"BLOB and TEXT columns cannot have DEFAULT values."

offlimits_msg and data both are TEXT columns.
How come you're getting an error on this, then..? And just these two? There are plenty of TEXT fields... :-/
1884
The Pub / Re: Wedge repo -- installation feedback
« on January 21st, 2014, 09:29 PM »
That's an interesting one.[1]
However, I can't make anything of your error log until your enable debugging in the Admin > Server > Debugging menu. This will disable PHP minification, and thus give us proper lines for the errors.
I could probably find the array_combine error, but there are too many array_merge's in there.

Re: importer

It's up and running; as I told Pandos in private, I fixed the importer to work on the latest version.
Unfortunately, I'm a bit in a hurry IRL, and will have to postpone everything by a couple of hours.
I'll try to (1) fix a minor bug in the importer, and (2) actually upload it somewhere, before I go to bed.
 1. Apart from the fact that I thought it'd take longer to get lurkers to subscribe, post their first message and just get straight to the point... No nuthin'?
1885
The Pub / Re: Wedge repo -- installation feedback
« on January 21st, 2014, 08:54 PM »
Try deleting all of wedge's htaccess files first. Can you then access the CSS.gz file directly?
If not, try deleting the root one. If it doesn't work it's probably a perm issue. If it works, reupload the htaccess and try to delete small sections of it until you find which one crashes it.
1886
The Pub / Re: Wedge repo -- installation feedback
« on January 21st, 2014, 08:23 PM »
Sorry, was out IRL.
In the meantime, I remembered that the only 500 errors I got lately were due to misconfigured htaccess files.
Since your files ARE getting generated, the problems is certainly with your gz folder (or its subfolders), either their permissions, or the .htaccess files in them. Does your server allow for htaccess files at all..?
Might be worth a FAQ entry, I guess.
1887
The Pub / Re: Wedge repo -- installation feedback
« on January 21st, 2014, 07:41 PM »
I'm trying to understand why compressing JS and CSS would generate a 500.

Okay, in Admin > Server > Settings (the first submenu), you should be able to choose what compression type to use. The default is Packer. Can you try other types, and tell me if they all generate a 500..? (Yes, included the uncompressed one.)
1888
The Pub / Re: Wedge repo -- installation feedback
« on January 21st, 2014, 07:33 PM »
CSS/JS is uncompressed when generated during the Wedge install process.... :-/
1889
The Pub / Re: Wedge repo -- installation feedback
« on January 21st, 2014, 06:55 PM »
Okay! I merged your post to the original topic (repo name poll), and split this topic from my first post, so it'll look more like a 'proper' topic. ;)
1890
Features / Re: New revs
« on January 21st, 2014, 06:45 PM »
[master 6b6ded5]
 2 files changed, 15 insertions(+), 15 deletions(-)

Apparently, MySQL doesn't like being asked the unsigned keyword on bit fields. It should have been smart enough to ignore them, but whatever... (install.sql)

While I'm at it, minor regex simplifications. (install.php)