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
2371
Features / Re: New revs
« on October 29th, 2013, 06:29 PM »
rev 2294
 13 files changed, 16 insertions(+), 16 deletions(-), 1.71 KiB (yes, I missed using patch sizes... :P)

* More spacinazi. Fascinating... I'm leaving some of the libraries aside (SFTP, Exif etc), because they're not from my codebase anyway. (Load.php, ModerationCenter.php, Notifications.php, Profile-Actions.php, Profile-View.php, SearchAPI-Custom.php, Subs-BoardIndex.php, Subs-Post.php, ManageInfractions.template.php, ManageModeration.template.php, ManageSearch.template.php, profile.js, index.css)
2372
Features / Re: New revs
« on October 29th, 2013, 05:31 PM »
rev 2293
3 files changed, 3 insertions(+), 3 deletions(-)

! The install files need a reminder that mysqli is now required. (readme_install.html, Install.language.php)
2373
Features / Re: Support for PECL Memcached
« on October 29th, 2013, 03:30 PM »
Pandos, I don't remember where we talked about this, but since there's already a topic for that, I'll just reuse it... (You can see from the wedge.org stats that technically, I'm a 'topic re-use' guy, whereas Arantor was a 'new topic crazy' guy...)

So, I've been looking into memcached (for some obscure unrelated reason), and installed a server on my PC, and wasn't thrilled to see that it didn't work.
The reason was pretty stupid, actually. I'm even wondering if SMF has got it right, either...
- reloadSettings load $modSettings, which it does through the cache.
- cache checks $modSettings (which is empty), and determines memcached isn't available. Load from file? Doesn't have anything.
- it then rebuilds the settings from DB, and proceeds to save it to the cache...
- cache checks $modSettings (which is no longer empty), and then saves to memcached. As a result, that entry will never be loaded by reloadSettings, which will continuously rebuild the $modSettings cache. For nothing.

In Wedge, it was a similar codepath, except that $settings ($modSettings) was only checked once; because memcached wasn't available, it would then use the file cache, and effectively keep using it later. So, Wedge is less buggy in that area, although it's due to another bug...

I've fixed it locally, by saving the memcached server data to a Settings.php variable instead. Because it's already loaded by the time $settings reloads from cache, we can effectively reload from memcached. Works.
There are still 3 outstanding bugs, although minor:
- language files don't seem to be stored through memcached. They still use the file cache. I'm not exactly sure why it was done that way. I'm going to assume it was for a reason, so I'll leave it aside for now.
- An admin area issue that forces me to re-enter the memcached server every time I go to that page. No biggie, will fix.
- And related to your topic: there is no php_memcached.dll file for Windows, meaning I can't even begin to test Memcached in Wedge.
This is relatively important to me, because it shouldn't be a big deal to implement this, but I looked into the SMF 2.1 code and they just basically replace memcache_* calls with memcached_* calls, and I can't for the life of me, find any documentation on the procedural versions of Memcached methods. Do they even exist...?!
2374
Features / Re: Safari 7 on Mac OS X 10.9
« on October 29th, 2013, 12:02 AM »
Good to know!

Then, I'm keeping support for Safari 7 and iOS 7 when it comes to flexbox... ;)

Also, I've re-uploaded my latest changes.
Could you test again in both Desktop and Mobile Safari 7, and your Safari 6.1 simulation? Thanks..! This time, it should be good too, but I've also fixed the whole true/false thing, so that it will also work in Safari < 7.
2375
Features / Re: New revs
« on October 28th, 2013, 11:57 PM »
rev 2292
 3 files changed, 8 insertions(+), 5 deletions(-)

! Wess didn't correctly handle the webkit prefixes on flex-* properties for Safari 7. It only handled 'display: flex', which was pretty useless. (Class-CSS.php)

! While 'true' tests in Wess worked, I'm afraid 'false' didn't, at least not always. It's complicated. (Class-CSS.php)

! Fixed CSS file URLs showing an unneeded keyword. (Subs-Cache.php)

- Another unneeded global. (ssi_examples.php)
2376
Features / Re: Safari 7 on Mac OS X 10.9
« on October 28th, 2013, 10:07 PM »
Okay, I think I might have spotted the bug...
Technically, display:flex was turned into display:-webkit-flex for Safari 7+, but not "flex:1 0 auto" for instance; this is because I do the transforms in two different areas, and when I added Safari support, I forgot to also do it in the other area. (Given that I don't have access to one of these, no surprise here...)

I fixed that, please tell me if it works.

Also, for some reason, looks like the flexbox support variable doesn't work right now; I'll have to investigate further, as it's important for me to get it right.
2377
Features / Re: Safari 7 on Mac OS X 10.9
« on October 28th, 2013, 09:41 PM »
Very, very odd... It looks like it's still using display:flex, even after I uploaded a fix to disable it... :-/
2378
Features / Re: Safari 7 on Mac OS X 10.9
« on October 28th, 2013, 08:07 PM »
What about now..?

Can anyone test on iOS 7, too?
2379
Features / Re: Safari 7 on Mac OS X 10.9
« on October 28th, 2013, 07:38 PM »
Hmpf..! Stupid Safari... -_-

I did all I could to add support for it, and whatever it's supposed o support. I don't really know what's not working here. It seems to be related to the flexbox feature, but... I don't know, it's supposed to support it, isn't it..?
Can you, I don't know, emulate Safari 6 from within Safari 7?

PS: as a reminder-- as of now, none of the Apple browsers are available to ANYONE who doesn't pay them big money for one of their overexpensive, overrated machines. Considering I abandoned my iPod Touch 4 long ago, obviously I don't have iOS 7 on it (it's still on iOS 5.1, and my battery is depleted, and whatever), and can't test either.
So, I guess you're on your own to 'fix' it from their developer tools... (They DO have developer tools, don't they...?? No, at this point, I wouldn't be surprised if they wanted to screw everyone up.)
2380
Features / Re: New revs
« on October 28th, 2013, 12:11 PM »
rev 2291 -- ♫ Blame Pete! ♫
 7 files changed, 53 insertions(+), 61 deletions(-)

- Removed more unused globals, and unused variables, such as $this_plugindir or $last_0. Blame Pete. (index.php, Load.php, ManagePlugins.php, QueryString.php, Security.php, SSI.php, Subs.php)

* Moved test_ip_host to Security file, as it's only used there. And still not working, BTW... Blame Pete. (Subs.php, Security.php)

! $SERVER was used instead of $_SERVER. Blame Pete. (QueryString.php)

! loadPluginLanguage didn't allow for $fatal to be set to false. Blame Pete. (Load.php)

! on_date(), which I have yet to use anywhere in Wedge, was using the wrong parameter. Blame me. (Subs.php)
2381
The Pub / Re: Stupid git?
« on October 28th, 2013, 06:53 AM »
I won't answer point by point, as this is getting a bit out of control, and I can feel that you're now argumenting for the sake of argumenting, guys...

I've often been guilty of that, and I'm none the wiser for it.
So... To put things into perspective: forumsearch0r, IIRC, is the one guy who registered here right around the day Pete decided to leave the team. Given his interest in the (newly found) Wedge platform, he was of course interested in seeing it 'work', and thus not happy to see Pete leave; so, he took the antagonist position to BK's defense of Pete (I'm not sure it was BK, but I know it was a non-regular poster), and so, for no special reason, you're now starting it all again, but on a personal level this time.

Guys, I don't think any of you has a 'problem', and there's no point in fighting over little problems like this.
forumsearch0r never made it clear he wanted to help develop Wedge; while he did say he was capable, he also never requested an alpha copy, or SVN read access, or Git read access (although in this case, I'm not even sure the change to a Git server was even mentioned in the public area. Ahum.)
He does strike me as a bit of a 'know-it-all', though, more than a troll. When I want to recommend a product, I'll explain why it's better. So far, FS has only made it clear that he preferred Emacs, but didn't give examples of things it can't do that others can't. I've been guilty, in my fouth, of knowitallite, its curable, but it will disappear by itself once you've have about a hundred flame wars about tech products. (For me, it all started with "the Amiga is better than the Atari ST"... The agony!)
BK, I'm not sure why you'd call yourself a friend of mine since I recently felt you were uncomfortable with me (or at least not trusting of me) during a conversation, but really, I don't mind. Call it whatever you want; even though I was bit many times in the past, it's in my nature to naturally trust people to be good-doers rather than wait until they brought the proof of it. (Because we all see ourselves as good-doers, after all. We just need to learn how one's freedom ends where the next man's freedom begins.)

anyway... It's not even 7am, and I'm already babbling on an Internet forum.
2382
The Pub / Re: Stupid git?
« on October 27th, 2013, 11:06 PM »
Quote from forumsearch0r on October 27th, 2013, 10:59 PM
Precisely. That's why I disabled all toolbars and scrollbars in Emacs. PHP coding is a keyboard-only task. Just define shortcuts for anything you need and you're done. Mouses (well, "mice" are something different) are sooo 1980s.
Hmm, but what if you're in a file with thousands of lines..?

Reminds me of Sublime Text 2. It's a pretty good editor, but it's very... original, in its own way. Check it out, if you've never heard of it. Not my cup of tea, but I recognize it's nicely done.
Quote from forumsearch0r on October 27th, 2013, 10:59 PM
Browsers are not directly related to being productive, they're plain viewer applications. OTOH, I use Firefox because I can use it faster than the other browsers, but that's not "productive", it's just getting used to it.
They're viewers, but when you're a power surfer like me, who likes having 1000+ tabs open at the same time, I can assure you, you want everything to be to your advantage, otherwise you'll just switch browsers... ;)
2383
The Pub / Re: Stupid git?
« on October 27th, 2013, 10:54 PM »
Quote from forumsearch0r on October 27th, 2013, 10:27 PM
Quote from Nao on October 27th, 2013, 09:54 PM
The UI is a mess, and it doesn't look like something usable by anyone.
How is the UI (which is configurable!) relevant for editing needs?
Well, just look at Wedge itself and you'll know...

The attention to detail is what separates good from great. And really, it can also make life easier on a daily basis. When you have a wide choice available to you, you tend to choose what makes you more productive. For instance, I already documented the fact that Notepad++ (and NetBeans, for that matter) don't have the main window's vertical scrollbar 'stick' to the right of the screen, meaning I have to voluntarily target the scrollbar thumb with my mouse, instead of just targeting its vertical position, and then moving my mouse to the extreme right of the screen, ensuring it'll respond to my clicks. It doesn't seem like much, but I systematically work like this, moving my mouse to the right, then going up or down until the thumb gets 'highlighted', and then I'll click and drag the thumb. It's important, to me, that software behaves the way I need, or that it can be configured to do so.
The same applies to browsers, BTW. And Opera did it that way. Chrome, too (although these days, until Opera implements vertical tabs, I'm using a Chrome add-on that adds vertical tabs, but also prevents the window from being maximized; it's a shame, but I'm dealing with it until times get better.)
Quote
I actually like it, but it has a couple of glitches indeed. Well, it's a beta.
An old one, too...
2384
The Pub / Re: Stupid git?
« on October 27th, 2013, 09:54 PM »
@forumsearch0r> Seriously, Emacs is broken... The UI is a mess, and it doesn't look like something usable by anyone. I did spend 10 funny minutes playing its embedded text adventure game, though... Lol. As for dnGREP, its UI is even worse, there's absolutely no chance I'm ever gonna use something that looks like it was designed by a kid, but hey... To each their own, I suppose. ;)
Also, its file preview isn't very practical. It doesn't jump to the results, for instance.

@TE> Wow, impressive... Thanks for the hint. I had to disable many things, but it seems to work.
I removed all unused globals from the root folder, I thought you'd done them all..? So, it was just a 'first batch', I suppose..?
One of the interesting ones, I suppose, would be these lines in Load.php...

Code: [Select]
$this_plugindir = $context['plugins_dir'][$plugin_details['id']] = $sane_path . '/' . $plugin;

$this_plugindir is initialized, but never used. I guess I can remove it safely, too. It's even in ManagePlugins.php, too, and once again, not used at all...
2385
The Pub / Re: Stupid git?
« on October 27th, 2013, 04:50 PM »
Quote from forumsearch0r on October 27th, 2013, 11:23 AM
dnGREP/Emacs, Emacs, Emacs, git shell ... :whistle:
What are their killer features..? Any 'plus' that none of the others have?
Quote
Linus Torvalds was one of the initiators of git - this might be one reason. :ph34r:
It only explains the software's name... Not the fact that despite having tons of developers working with it, there's never been a 'git for dummies' version, or anyway, something that would simply rename functions to be in line with usual SVN commands, etc...