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
3871
Other software / Re: Discussing Elkarte on wedge.org
« on January 20th, 2013, 12:57 AM »
Quote from Oracle on January 20th, 2013, 12:09 AM
Quote from Nao on January 19th, 2013, 07:03 PM
We're all more of less Sheldons in here. No need to feel bad about it ;)
:lol:ha hahah great show that.
I'm more interested in the other characters, though.
Anything where I'm not reminded that *I* am a bit of an asocial.

Thinking of it, the show I'm currently fascinated with (1976's BBC production of "I, Claudius") is pretty much the life story of the world's first documented nerd :lol:
3872
Off-topic / Re: Need help with my Interwebs connection
« on January 20th, 2013, 12:13 AM »
Sorry, I let go of this topic... I guess it hurt too much ;)

It's still a problem, and still a mystery to me. It isn't a TCP IP packet size thingy, it probably even isn't a TCP IP problem at all because of one of the things I explained (having my network down doesn't prevent a large file from downloading, meaning packet exchange between the server and my router continues happily.)

On a positive note, today I finally managed to launch a movie file from my S3 (where I downloaded it) to my PopCorn Hour media player through streaming... I think it's the first time I ever managed to do something like that, ie not using my USB drive on it :P
3873
Other software / Re: Discussing Elkarte on wedge.org
« on January 19th, 2013, 07:03 PM »
We're all more of less Sheldons in here. No need to feel bad about it ;)
3874
Other software / Re: Discussing Elkarte on wedge.org
« on January 19th, 2013, 06:06 PM »
Great minds again. Until last week I thought it was pronounced meme (meh meh). Then I heard someone in a video say the french word for mime. Meem as you say. I think it was in the latest big bang theory.
Posted: January 19th, 2013, 06:05 PM

I typed mémé but android insisted on changing it to meme eh eh...
3875
Other software / Re: Discussing Elkarte on wedge.org
« on January 19th, 2013, 05:55 PM »
Yes i don't trust them to give us the freedom we have with Wedge. Which is why we would refuse it. However, if they were to give us one hundred billion dollars for it, I'm pretty sure we'd be happy to give it away. Heck I'd use my share to buy vBulletin and turn it into something nice :p

Hmmmmmmmm actually there are things that even money and good will can't buy ;)
3876
Okay, now I see it... I didn't open the page for non-images because I thought it'd work. It works in AeMe for SMF... :-/

I've looked into the source code, and can't find the reason for it.
Basically, $item_data['is_new'] is set to 0 when on an item page, so it doesn't attempt to mark it as seen, but set to 1 on the unseen page.
Need more time to find the culprit... -_-
3877
Other software / Re: Discussing Elkarte on wedge.org
« on January 19th, 2013, 03:35 PM »
Lol...

Well, maybe they prefer to devote more of their time to the software itself!

The first few weeks of a fork are important. It's where you determine how much enthusiasm there is for it. Considering that activity increased a lot after they made the fork, it can be said that they felt their enthusiasm was renewed by the new environment, the new rules.
The later few weeks are more important, though -- the moment when 'things happen' and you start devoting more time to other things. Question is, can you go back to work after that? I've seen EosAlpha pretty much die after nearly a year of activity from Nightwish, mostly I'm afraid because not many people knew about his fork. I've seen Wedge go through a rough patch when you left the project aside for a few months last year and I was unsure whether to keep doing my thing on my side or take over your share of the load. (Thankfully, I only had to endure for some time :))

I have to say, I'm interested in seeing where this will go. I wouldn't use Elkarte, just like I wouldn't use SMF these days, but I'm really interested in seeing what unfolds for SMF:
- new dev team for SMF? If yes, dedicated or not? Hope or despair?
- Elkarte's point "being made", fork turned back into SMF 2.x and work ongoing with same dev team?
- SMF offering us ONE... MILLION... DOLLARS! (insert Dr. Evil laugh here) to turn Wedge into SMF 3.0?
- Or maybe... One... Hundred... BILLION DOLLARS!
- Or something else that I didn't think of?

I have to say, regardless of anyone's merits, I'm quite shamefully addicted to knowing what's going on in the SMF world. Maybe that's why I never go to their forums. I know it could turn out for the worse... ;)
3878
Features / Re: New revs - Public comments
« on January 19th, 2013, 02:55 PM »
Quote from Arantor on January 19th, 2013, 02:45 PM
Great minds think alike :)
But, on the same night? 8)
Quote
Actually, yeah, it would be better to pass things in through an array
It may not seem very 'clean', but it's certainly something that plugins might appreciate being able to do. Provided there are even hooks in parse_bbc() to deal with it, of course...
Quote
in fact you could pass in everything other than message that way if you really wanted.
What do you mean? (Or, to avoid having people think I can't speak English, "What did you have in mind?" :P)
3879
Other software / Re: Discussing Elkarte on wedge.org
« on January 19th, 2013, 02:52 PM »
Oh bugger, it was posted on January 13... I stopped looking at my backlog on January 15 since I thought everything happened that day... Lazy me ;)

So, all right then, it was neither a coincidence nor a problem, it was just my old brain playing tricks on me.
To tell you the truth, I even thought that the bug wasn't in SMF 2.0 in the first place... I had to double-check to make sure it was indeed.

Well, then I'll simply demand a thanks to Nao instead of emanuele in that commit log, ah ah! I know logs can be rewritten :niark:

Oh, what do I do with this topic now? :lol:

Private? Delete? Or just leave it around in case we want to discuss Elkarte at all?
3880
Features / Re: New revs - Public comments
« on January 19th, 2013, 02:31 PM »
So, I'm looking at Pete's latest commits and I found something funny... Another of those 'coincidences' I noticed earlier ;)

Last night I was fixing a bug (which I have yet to commit), related to Wedge cutting off the starting and ending linebreaks inside a quote when switching to Wysiwyg mode. (I told you, I never use Wysiwyg, except when I'm told it needs fixing...) I noticed that it didn't break any other linebreaks, so I looked into parse_bbc() and quickly remembered that I'd added a special regex just to get rid of extra whitespace. Disabling it fixed it. Then I figured, oh yeah it's because the Wysiwyg conversion shouldn't go through the same parsing steps as when actually showing the posts...
So I added a parameter to parse_bbc(), called $converting, which was set to true by the converter, and false otherwise, and it would then skip the line.
Then I thought, oh my that's a lot of parameters to deal with... And shouldn't it make more sense to ensure that it isn't called anytime there's non-standard parsing being done...? So I decided to instead go for an empty($parse_tags) test. It probably isn't perfect, but it should catch most of the occurrences, including the Wysiwyg one. So I did it that way.

Then I'm seeing the new commit, which adds an author ID parameter[1] to parse_bbc(), and really that made me smile.

So, thanks Pete for the coincidence and the smile ;)

I'm thinking, however, that we might want to instead provide a single extra parameter in the form of an array, where we could add our extra params like 'id_cache' and 'id_member' or whatever... Thus, no limits to what can be stored in the parser params, and they can in turn be transmitted to hooks so that plugins may intercept something that they target in particular.
What do you think...? Or is it too ugly of a solution?
Posted: January 19th, 2013, 02:25 PM

Code: [Select]
(empty($_POST['pin']) == empty($topic_info['is_pinned'])

I've always loved this kind of smart, elegant little trick ;)
 1. Also for the record, I think we both considered adding that parameter at least a couple of times in Wedge's lifetime, for various reasons!
3881
Other software / Re: Discussing Elkarte on wedge.org
« on January 19th, 2013, 02:27 PM »
I don't know, I simply couldn't find my post... Maybe I didn't look hard enough. I'm so tired. (IRL stuff...)
3882
Other software / Discussing Elkarte on wedge.org
« on January 19th, 2013, 02:15 PM »
(Sorry about the topic title, I found it irresistible to use it :lol: I'm also not posting this in private boards because I'm not sure who's in our Friends group or not. If you want it to be private, please ask for a Friend badge if you don't already have one, and request for the move to be done.)

So... First time I'm looking at Elkarte's github... There's a lot of activity so I'm not going to do that often... But I find it amusing (also a bit upsetting I'll admit) that in the first page of commits, I found this:

https://github.com/elkarte/Elkarte/commit/babfac398abdb9b49ffb3e1d3d1631585e917ede

This looks a LOT like a fix I made to Wedge in rev 1847, just four days ago...

Code: [Select]
Index: ManageErrors.php
===================================================================
--- ManageErrors.php (revision 1846)
+++ ManageErrors.php (revision 1847)
@@ -659,14 +659,11 @@
 
  // Decode the file and get the line
  $file = realpath(base64_decode($_REQUEST['file']));
- $real_board = realpath($boarddir);
- $real_source = realpath($sourcedir);
+ $line = isset($_REQUEST['line']) ? (int) $_REQUEST['line'] : 0;
  $basename = strtolower(basename($file));
- $ext = strrchr($basename, '.');
- $line = isset($_REQUEST['line']) ? (int) $_REQUEST['line'] : 0;
 
  // Make sure the file we are looking for is one they are allowed to look at
- if ($ext != '.php' || (strpos($file, $real_board) === false || strpos($file, $real_source) === false) || ($basename == 'settings.php' || $basename == 'settings_bak.php') || strpos($file, $cachedir) !== false || !is_readable($file))
+ if (strrchr($basename, '.') != '.php' || $basename == 'settings.php' || $basename == 'settings_bak.php' || (strpos($file, realpath($boarddir)) === false && strpos($file, realpath($sourcedir)) === false) || strpos($file, realpath($cachedir)) !== false || !is_readable($file))
  fatal_lang_error('error_bad_file', true, array(htmlspecialchars($file)));
 
  // Get the min and max lines

As you'll notice, the main change in here is that I fixed the || into &&, just like in the Elkarte commit.

This sounds too coincidental to be true to me. Shouldn't I be the one who gets the thanks, not emanuele?
So...
ema, I have no problems with giving you our alpha versions or whatever, I have absolutely no qualms with you or Elkarte and wish you all the best. I'd just rather be told if you already somehow have access to our SVN without telling. It would make things more comfortable for everyone I think. It's not that I don't think it can be a coincidence -- it's that now this has happened, just a few days after my own fix, this is how I'll remember it, and the harm is already done in my mind, whatever the truth might be. And I don't like this. I don't like being in a situation where I feel uncomfortable about sharing things with other like-minded developers.

If anyone at Elkarte wants to reuse an idea or code block that we wrote, please ask us. We're not ogres. We don't cling to every bit of code that we write like it's our virgin child that we won't give away. Our license is for a general code of conduct and how we want to deal with things generally, but we're flexible on the whole.
Just please don't do this kind of thing behind our back.
Posted: January 19th, 2013, 01:58 PM

Oh, the joys of doing several things at the same time...
I just noticed that the Elkarte commit was made on the exact same day. I haven't checked the times but I suspect it means that I mentioned the exact bug somewhere in this forum, which would explain everything, i.e. that it's neither a coincidence nor a problem.

But did I...? I don't remember. Can someone find my post?
3883
Features / Re: New revs
« on January 18th, 2013, 10:34 PM »
rev 1857
(14 files, 3kb)

* Finished converting all .substr() calls to .slice()... I'm surprised that none of the .substr() had any reason to stay, and overall we're saving bytes everywhere. (attic/Unused-testStyle.js, attic/text-overflow.js, create_backup.php, smfinfo.php, ManageSmileys.php, Aeva-Subs-Vital.php, TEMPLATES: Admin, Display, PersonalMessage, Poll, Profile, Split, Themes)

! Fixed URL shortener when the link contained an image. The rewrite is one gzipped byte shorter, and should be 100% safe. (script.js)

- Removed a very, very well hidden (and as expected totally useless) Easter egg. Someone in the SMF 1.0 dev team was definitely a Gwen Stefani fan. For those wondering, the egg is still in SMF 2.x, so I'm not the only one who missed it. (Profile.template.php)
3884
Features / Re: Plugin revs
« on January 18th, 2013, 10:22 PM »
rev 69
(2 files, 1kb)

* Turning a couple of substr calls to slice... Yeah, that's my thing today. (mass_upload/attachui.js, theme_selector/ThemeSelector.php)
3885
Features / Re: Template edits
« on January 18th, 2013, 07:37 PM »
Wow, too many posts...
I'm not going to answer anything, I'll just reiterate a few things and ideas, mostly for my own benefit because I'm a bit confused right now...

- I think that message lists are an excellent candidate for a 'special case' where we inject a mini-skeleton into the game. This doesn't have to be complicated... Something like <post:id><post_wrapper:id><post_author:id><post_body:id></...></...> where id has the list of posts... Then we inject that into the skeleton. Probably through wetem calls as I said, so it doesn't need to rebuild the skeleton, or as an actual skeleton if we offer users the ability to redefine the post skeleton in skin.xml or something. Then at rendering time, Wedge just calls the blocks as expected. I don't really see any show-stopper here. Is there...?

- As for hooks, Wedge already has _before, _after and _override blocks available for anyone wanting to add some template code to an existing block. I don't see anything that can be done through hooks but not through block overrides...? However, it might be a possibility to add a call_hook on a dynamic hook based on the template name. That might give plugin authors the ability to use whatever they like best, i.e. either a block or a hook to insert.

- I'd love to be able to say "we can also print a block to a temporary output buffer, then send it to a hook for post-processing, then send that buffer to the proper output buffer". It even makes a lot of sense, come to think of it... But I'm afraid that performance might be hurt by this process, especially in the Display pages (if we end up implementing the mini-skeleton.)