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
9271
Other software / Re: So, I've been asked...
« on April 15th, 2011, 12:50 AM »
Marketing's a long-term thing. We might as well get started on good foundations. That's all I'm sayin'. Maybe the SMF team can feel offended that they suddenly have 44k+ links to Wedge.org on their website (even though Google doesn't value much all of these repeated similar links), but they certainly crossed the line by editing the link out from my signature (considering I haven't posted in 8 months and thus am not particularly well 'seen' on their forum), repeatedly until I gave up (I guess I'm not the 'younger' spirit here... :)), and without any prior or further notice.
There are things that I have a hard time accepting.
9272
Other software / Re: So, I've been asked...
« on April 15th, 2011, 12:18 AM »
Go tell that to the SMF team...
I myself spend most of my time working on Wedge. A small flame war from time to time is not a problem-- I deal with them during my breaks anyway. But marketing, I can't do alone.
9273
Off-topic / Strange behavior from WAMP server...
« on April 15th, 2011, 12:15 AM »
Very strange. But more importantly -- dangerous for the project.
My WAMP server was down. Wamp = down means I can't develop Wedge locally anymore. And I'm definitely not excited about developing and testing it remotely, really...

I did absolutely nothing-- well, I tuned on FIP Radio (online) and listened to the Portico Quartet concert, then went for a cigarette, and when I came back, the radio was down.[1]

I couldn't log into my local website after that -- or any site for that matter. One of my two httpd.exe process was using 50% of my CPU time (i.e. one core at 100%), and it keeps opening new handles. After about 2.040.000 handles, CPU use goes back to 0%, handle count doesn't increase anymore, and the Net is down for me (anything on port 80 I'd say), including non-local stuff. Once I kill the httpd.exe task, I get my Net back.
Sounds similar to what this guy had:
http://www.apachefriends.org/f/viewtopic.php?f=16&t=41141&view=previous
Upon which he was told to switch to Linux. Great... To solve what, an Apache (=from Linux world) memory leak?

Now this is very annoying, because it started without warning, and it stopped without warning either -- all in all the problem lasted for a couple of years.

Anyone got an idea about this?

http://www.wampserver.com/
Apache 2.2.11
PHP 5.3.0
MySQL 5.1.36
Changed absolutely nothing to the default setup. Worked perfectly until an hour ago. And yes, I rebooted my machine just to be sure... :-/
The only thing I did when it 'came back', was that I only started the Apache module, not the rest. I doubt this is related, because I'd left my server offline for several minutes, and I tried to restart all services at once anyway, and I'm not getting the error again...

Oh, how I hate Apache.
 1. And *of course* I was recording it because PQ is my favourite jazz band and they never released a live album and I was so thrilled by their concert last year that I wanted to have it in my archives... >_< Thanks to this problem, I'm missing the last few minutes of the concert.
9274
Other software / Re: So, I've been asked...
« on April 14th, 2011, 10:19 PM »
* Nao/Gilles likes childish! :p
9275
Off-topic / Re: Why the hell has no-one thought of this before?
« on April 14th, 2011, 09:55 PM »
It had a smiley... (= visual hint :whistle:)
9276
Off-topic / Re: Why the hell has no-one thought of this before?
« on April 14th, 2011, 06:18 PM »
Shakespeare, decent writing? "Wherefore art thou my Romeo"? It's not even proper English!!!! :niark:
9277
Off-topic / Re: Spam
« on April 14th, 2011, 02:45 PM »
Monty Pythons are next door, wrong place!
9278
Off-topic / Re: Why the hell has no-one thought of this before?
« on April 14th, 2011, 02:44 PM »
A theater production? Ah, they should do it as a redubbing of the movie... That would be fun, too.
9279
Off-topic / Re: Post count fever
« on April 14th, 2011, 10:24 AM »
Spam is acceptable as long as it's manageable... (e.g. it stays in a couple of spam topics, things like that.)
But overall it's not really something I condone.
9280
Features / Re: Naming Boards/blogs/sites etc.
« on April 14th, 2011, 10:13 AM »
Re: parse_bbc performance.

- Maybe we should use the opportunity of a full import to do some sanitizing work on posts that weren't sanitized in the first place (e.g. posed through a non-complying mod, things like that.) That way, we could remove some of the legacy code from parse_bbc. Hopefully.

- For those who aren't in the private area and can't follow my little adventures... One of the features I added was a complex block replacement system that supports optional params. I'd crafted this beautiful regular expression that worked great. Then it crashed a few pages, so I rewrote it for performance (with inspiration from my 'goddess of all regex'[1] and that really odd atomic grouping thing). It became extremely reactive and I couldn't get to crash it anywhere. Was satisfied with it. Only, I wasn't sure it wouldn't crash anywhere else (although my experience with the 'goddess' tends to confirm that it wouldn't...), and I was curious about something: performance of a complex but very optimized regex, against the use of pure non-regex PHP. So I started working on a small function that would do the same work as the regex.

Quite surprisingly, it only took me 20 minutes to get it working, it only took a few lines of code, and it was fucking fast. The final version is about 10% faster than the regex version, and the more blocks you replace, the faster it gets -- once you reach 300 blocks, it becomes a strain on Wedge in the regex version while the pure PHP version still keeps flying (about 5 times faster.)

This is only mean to explain that I used to think regexes were the ultimate solution for complex performance-aware searches/replacements. I'm not so sure about that anymore. Actually, I'm starting to wonder if I'm not going to turn this pure PHP version into a regular multi-purpose function with associated callbacks, that will happily handle any kinds of tags, be it HTML, BBC or Wedge block tags (<we:block>). Maybe then, we can start doing tests in parse_bbc and see if it can be done faster.

One of the things we should sanitize in posts is tag cases. I mean, I don't see why we should accept [Html] tags when it should be 'html', in lowercase. Case insensitivity is one of the things that regular expressions are great at, as Pete can confirm. My pure PHP version is case sensitive. Had I added support for case insensitivity (and I did at some point), it would have been twice slower. Which is okay when you have 300 blocks to deal with (it's still 2.5x faster than the regex version), but it becomes 80% slower than the regex version when using only a dozen blocks.

So... These are a few of the solutions I could offer to try.
 1. This is a special regular expression I wrote for Aeva Lite back in 2008. It fixed a crash bug that had plagued AEVAC for months, and that pretty much drove Karl Benson to give up on the mod. As far as I can remember, getting that regex to work was a defining moment for me -- that's when I accepted the idea that I had become capable of handling SMF mods.
9281
Off-topic / Re: YouTube using short links?
« on April 14th, 2011, 09:55 AM »
Thanks...... But that's not a repost, it's a totally new post that doesn't say the same thing as I do..... :whistle:

And I was on my iPod when I typed my post. Believe me, finding the [ and ] keys is annoying in that situation :P
Posted: April 14th, 2011, 09:43 AM

Okay, I'm testing the feature I said, and it's not working... Gimme a minute.
Posted: April 14th, 2011, 09:46 AM

Well, it appears it's buggy.
[smg id=1 type=album] will work, generating a list of thumbnails from a specific album.
[smg id=1,2,3,4,5] (type=normal or preview) will only show the first item in the list.
It SHOULD be showing a list of items next to each other.

This bug was never reported to me because, well, people don't use the smg tag much, and don't ever read the helper popup, even though it's handily available and it's full of humor to make it less tedious to read... (And to translate ::))

I guess I'll add this to my to-do of fixes for Wedge. I won't fix it in AeMe, though.
Feel free to delete your post or indicate that I'm sorry it doesn't work as expected and it'll be implemented in Wedge.
Posted: April 14th, 2011, 09:51 AM

(BTW, your post said smg=1,2,3 without the id. That's what I meant when I said it wasn't a repost.)
Posted: April 14th, 2011, 09:52 AM

Also, I think I should mention that the smg tag has too many possible types. I will probably remove the 'link' type at some point, and replace the 'normal' type with a simple thumbnail with name. The reason is that now that thumbnails in album pages show more details on hover rather than systematically, it shouldn't break page layouts anymore.

PS: oh, and for those who don't have access to the svn -- when I say "smg tag", I mean "media tag". It was renamed when I moved it over to Wedge, obviously. Since all posts have to be re-imported anyway, it was the right time to do it...
9282
Off-topic / Re: Post count fever
« on April 14th, 2011, 09:01 AM »
Pete opened Pandora's box in the first place... Anyone posted over there is a spammer anyway. :niark:
9283
Off-topic / Re: YouTube using short links?
« on April 14th, 2011, 07:55 AM »
Not a problem. Still... Please RT? ;)
9284
Off-topic / Re: And so...
« on April 14th, 2011, 12:43 AM »
Why? We aren't certain Smf or Wedge are safe either ;)

Hey.  Funny quote from mister "gpl is god, fuck you if you plan to sell a non-gpl plugin!"

Matt Mullenweg, wrote. “We presume our source code was exposed and copied. While much of our code is open source, there are sensitive bits of our and our partner's code.
9285
Off-topic / Re: YouTube using short links?
« on April 14th, 2011, 12:35 AM »
Re: smf tag on sm.org: I think it's explained in the tag help popup. [smg id=1,2,3] should show a row of items. That's how I set it up and it makes sense to me....... ::)