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
6151
Off-topic / Re: Let me hold a dollar?
« on March 12th, 2012, 11:45 PM »
Technically, both your regex and Pete's do exactly the same ;)

.*? = greedy = it will stop at the first occurrence of the next character (>). Newlines are taken into account by adding the 's' modifier at the end.

[^>]* will also stop before the next >. Newlines are taken into account without a modifier, because it's a negated character class and doesn't need that.

:)
6152
Plugins / Re: Settings page integration
« on March 12th, 2012, 01:50 PM »
Reminds me of a recent conversation, eh... ;)
6153
Off-topic / Re: Introduction
« on March 12th, 2012, 01:49 PM »
No, my local Home.template.php is a direct copy of the Wedge.org homepage (without the Facebook zone though, which I can always add in the process, just didn't want to make the page too busy), it's just the Welcome.template.php version that's devoid of a list of topics. I assure you, I wouldn't publish it without it ;)
6154
Plugins / Re: Show Hooks
« on March 12th, 2012, 01:18 PM »
A Möbius strip?
(RIP Moebius, BTW. A very influential French comic book artist who was also the costume and world designer on the first Tron, and also made concept art for Alien and The Abyss among others.)
6155
Off-topic / Re: Introduction
« on March 12th, 2012, 01:12 PM »
Well, Wedge.org already looks different but that's because I based it off Noisen.com which uses a VERY heavily customized SMF. I customized Wedge.org a bit further, but unfortunately as a result it looks *worse* than Noisen.com (don't ask me why, at the time I thought it looked good enough :P)

I'm still working hard on making Wedge at least viewable by the end of the week. Heck, I could do it now by posting a demo site... But I have yet to determine if (1) it should use the Wedge.org data (users, posts...) and people will understand that it's a demo and the posts will eventually go away, (2) I should make a clean install and no import, and thus expect people to post their test messages on it, (3) it won't be detrimental to our image that our demo site runs Wedge but not our main site, somehow implying that Wedge is not ready for use yet -- which it isn't the case, but I still need to at least implement proper thought privacy and such. (The Friends group is used to posting thoughts for Friends only, meaning I have to ensure per-membergroup privacy is enabled, which can be done easily, but I also have to write the UI for it... Which is a bit more annoying because of my tendency to write complex JavaScript popups.)
6156
Features / Re: New revs
« on March 12th, 2012, 12:38 AM »
rev 1454
(5 files, 3kb)

+ Added skin-controlled on-the-fly HTML replacements. Currently, the feature supports three types of search: a normal search, a regular expression search (accepts regex meta-characters and so on), and a regular search with a special addition: <we:nested:tag_name> will match against any HTML, and will end as soon as all of the nested tag_name tags are closed (if any). It may not sound exciting, but at least it's very fast (on a regular Wedge page, replacing all unordered list items with a recursive element will only take one millisecond.) Also needs documenting... (Subs-Cache.php, Subs-Template.php)

* A minor error in my own custom.css file made me add another bug to the CSS code this week... (sections.css)

* Indenazi. (index.template.php)
6157
Ok!
6158
Off-topic / Re: IT'S OVER 9000!
« on March 11th, 2012, 02:21 PM »
Hmm... Come to think of it, me too.
The other is cynarhum.com
6159
Care to look into this yourself? I'm dead after a hectic weekend...
6160
Features / Re: Home button
« on March 11th, 2012, 09:30 AM »
Again use the same icon. In grayscale.
filter: gray()
6161
Features / Re: Home button
« on March 11th, 2012, 07:44 AM »
You're too concerned about a small detail ;)
6162
Off-topic / Re: IT'S OVER 9000!
« on March 11th, 2012, 07:42 AM »
But isn't this the 9000th forum where you cross the 9000-post barrier? :P
6163
Off-topic / Re: IT'S OVER 9000!
« on March 10th, 2012, 11:38 PM »
Says the guy who created this topic :niark:
6164
Off-topic / Re: IT'S OVER 9000!
« on March 10th, 2012, 10:31 PM »
Hey, just realized I'm over 9000 too...! :P
6165
Features / Re: Poll mode
« on March 10th, 2012, 10:28 PM »
Quote from Arantor on March 10th, 2012, 12:09 PM
Quote
- I can either add an id_topic to the poll table, or allow for comma-separated poll IDs in the topic table (or both!) What do you like best? The table solution simply requires adding an extra key (on id_topic), seems simple enough. The poll ID list should be okay too, in the sense that when in Display, we can easily query for the poll details by using id_poll IN ({string:poll_ids}).
Add an id_topic to the poll table (with key as suggested) and repurpose the existing id_poll field as a tinyint to say whether or not there is a poll attached to the current topic. It's the fastest way of dealing with this.
I thought that having a 0/1 choice only in a key was going to hurt performance..? Like t.approved?
Quote
I've never verified this, but my reading of the rather-vague documentation in MySQL suggests that when using UTF-8 that's actually storing UTF-8 characters, you store them based on the actual number of characters, not the number of bytes. (Certainly it makes reference to CHAR(10) fields in UTF-8 tables taking 30 bytes, as it has to account for 3 bytes per character) This suggests we'd still end up with 255 characters' worth of question even when using multibyte characters, but this needs verification to be sure.
The MySQL documentation tends to contradict itself on this.
http://dev.mysql.com/doc/refman/5.0/en/string-type-overview.html#id804512 (i.e. VARCHAR(255) allows for 255 *bytes*, not chars)
http://dev.mysql.com/doc/refman/5.0/en/column-count-limit.html (implies otherwise in the first VARCHAR example.)
I guess it would need testing...
Quote
There's a world of difference between 'could really benefit' and 'might be useful', and actually the only ones that stand out in my head as being useful are things like the topic subject. I'm not sure that most fields which are varchar(255) would actually benefit.
Plenty that I could think of when seeing the list, really...
Quote
Interesting idea, though I'm not worried about it at present, that's what beta is for, right? :P
I guess so... But it can also be used during beta!