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
2896
Features / Re: New revs
« on June 3rd, 2013, 10:02 PM »
rev 2146 -- just to get these out of the way, 'mkay..?
(1 file +2-2, 179kb)

* Updated jQuery to newest versions (2.0.2/1.10.1), as this time Google was prompt enough to update them immediately, yay. (Load.php, jquery-*.min.js)
2897
Archived fixes / Re: Updated CSS code is buggy
« on June 3rd, 2013, 08:23 PM »
.............. :^^;:
2898
Plugins / [Plugin] Re: User Mentions v1.0 (9th March 2013)
« on June 3rd, 2013, 02:30 PM »
Well I did say I uploaded it to satisfy your curiosity. And if you want to improve it even more. You have svn access on plugins, don't you..?

May I ask what the point of putting it on github is? It can only be used in Wedge... ^^
2899
Bug reports / Re: display name vs username in pretty urls
« on June 3rd, 2013, 09:28 AM »
Quote from Arantor on June 3rd, 2013, 12:23 AM
Could always do what FB did which that it doesn't give you a vanity URL until you apply for it, but once you do it's permanent.
Yes, it's a possibility, I guess...
And provide a fallback, such as, a link to the person's user name will redirect to their vanity URL; and preventing users from choosing a vanity URL that matches another user's user name (or display name, for that matter..?)

What do you think..? I'm all for it, although yes, it requires an extra member field, but whatever... One more, one less, it doesn't change anything when you already have 357.421 fields in that table, eheh...
2900
Off-topic / Welcome to prehistoric times.
« on June 3rd, 2013, 09:26 AM »
So, during this weekend, I found myself in an interesting position. My Windows 7 started behaving like it's 1995.
Basically, all of the fonts somehow forgot how to show Unicode characters. That is, I have plenty of Japanese programs and folders -- they show up as squares in the Start Menu and in my File Explorer. I was using PT Sans as my main font, so I changed it to my alternative preference, Tahoma, with the same effect. I tried many, many fonts, and it seems that only one font recognizes Japanese (and CJK in general) characters, and that is Segoe UI. Heck, even Arial and Times New Roman don't work, eh..?!

I've temporarily set my font to Segoe UI, but even though I love it for web design, I hate that font for daily use, I find it too... stylish, and not as well hinted for my monitor as PT Sans is, for instance.

I've done countless web searches on this issue, and it seems I'm not alone, but I really can't fix it, and was wondering if anyone had ever had the same issue..? Of course, not everyone needs Japanese support on their system, but whatever...

Maybe a reboot will fix it, but currently I'm still working on my NAS setup, so it's a no-go.

That weekend really, absolutely, pathetically SUCKED. -_-
2901
Archived fixes / Strange buddy list error...
« on June 3rd, 2013, 09:17 AM »
Subs-Members.php, member removal code:

Code: [Select]
while ($row = wesql::fetch_assoc($request))
wesql::query('
UPDATE {db_prefix}members
SET
pm_ignore_list = {string:pm_ignore_list},
buddy_list = {string:buddy_list}
WHERE id_member = {int:id_member}',
array(
'id_member' => $row['id_member'],
'pm_ignore_list' => implode(',', array_diff(explode(',', $row['pm_ignore_list']), $users)),
'buddy_list' => implode(',', array_diff(explode(',', $row['buddy_list']), $users)),
)
);
wesql::free_result($request);

Profile-Modify.php, buddy removal code:

Code: [Select]
foreach ($buddiesArray as $key => $buddy)
if ($buddy == (int) $_GET['remove'])
unset($buddiesArray[$key]);

// Make the changes.
$user_profile[$memID]['buddy_list'] = implode(',', $buddiesArray);
updateMemberData($memID, array('buddy_list' => $user_profile[$memID]['buddy_list']));

Btoh seem alright to me... And I can't think of another place, that could remove buddies.
Problem is, live627 has this string in the member table for buddy list: ',xxx' (where x is the only buddy he has. Don't remember the number, don't wanna know..!!)

Where does the extra comma come from..?
John, do you remember removing a buddy from your list? Or adding someone to the list that's not in your current list..?
This causes any visit to your PM area, to trigger an error in the log, which is really odd. (Well, it's due to getContactList, but you know what I mean.)

I could do a 'quick fix' by forcing an array_filter() on $users at loadMemberData time, but to me it's a cop-out, and I'd instead like to ensure this doesn't happen any longer, eh...

PS: this won't last, anyway... Once I'm done with contact lists, all buddy code will be removed, so... It's just for my peace of mind, I guess..!!!
2902
Archived fixes / Re: Updated CSS code is buggy
« on June 3rd, 2013, 07:37 AM »
So, did they actually remove it, or not..?

And if it's free, it can be reopened again, right..?
Can you at least share the URL? :^^;:
2903
Archived fixes / Re: Updated CSS code is buggy
« on June 2nd, 2013, 11:29 PM »
Oh... :-/
2904
Off-topic / Re: Welcome to modern times.
« on June 2nd, 2013, 11:14 PM »
RAID 5 is not as good as SHR, though, Synology's own rendition of RAID 5.

Okay, so I created a RAID 1+0 volume, then proceeded to create a SHR volume, and was disappointed to see that, unfortunately, I couldn't choose my volume type at this point... So, it means I can't really create multiple RAID types on different portions of the same drive; instead, I can only, for instance, have a 'regular' drive, and 3 other drives configured in SHR mode. Which sucks... I mean, it doesn't have any point ;)

So, I'll just create a SHR version, and be done with it...
My drives usually crash one at a time, with several years between each drive. I certainly hope I won't get them all to crash at the same time "just because" I happened to buy all 4 of them together at the same time, eh...

Still, I'm literally very scared that it MIGHT happen... :-/
But I can always re-purchase a new 8-bay NAS in a few years, and do a network backup, and then start again with a setup with 2 spare drives, or something...
2905
Off-topic / Welcome to modern times.
« on June 2nd, 2013, 08:38 PM »
So, recently I had a heavy hard drive failure of a 1TB unit, which hits hard... No 'critical' data on it, but still, plenty of data I'd rather not have lost... So I decided I'd finally go NAS.

I bought a Synology 413j, and after 24 hours of fighting with it and its cables and the fact that my secondary network port died on me without my knowledge and I had to buy a PCIe card just to provide a new port (-_-)[1], I'm relatively up and running at this point, but whatever. I still have concerns...

Maybe some of you have a NAS, and already went through the same questions.

- Is it possible to have two volumes, one of which would be in Hybrid RAID (3 available hard drives, + a backup one), and another which would use the remainder of the hard drives, but with a 2-drive fail safe (i.e. all data on it is safe until at least 2 of the drives are dead). I would think that it's technically possible, but I don't really know. It would be nice -- a place to keep my all-important data, and a place to keep my collection of holiday movies and so on. If it's not possible to do that, I'm actually, err... Considering doing a setup where I have 2 drives for fail safe. That only leaves me with 5.4TB of available space, though... Not that much. Well, that's enough to put my current data into the NAS, but not enough for a 'couple more', I guess...

- How rare is it for 2 drives to fail at the same time, actually..? Well, they could even fail one day apart, since you have to rebuild the RAID, and if another drive fails in that time, the RAID setup is dead, I guess... :(

I had something else to ask, but I forgot, so it'll be for a next time, or never... ;)

(BTW, the web UI for Synology rocks... They actually emulated a proper graphical OS in JavaScript and CSS, or something. Inspiring work...)
Posted: June 2nd, 2013, 07:22 PM

Apparently I can do multiple volumes with varying types of RAID on each... :)

http://www.synology.com/support/tutorials_show.php?q_id=558
 1. Then realizing that I probably should have directly bought a switch, so I'd have been able to share my data on my LAN, uh...
2906
Archived fixes / Re: Updated CSS code is buggy
« on June 2nd, 2013, 08:26 PM »
Bump..?
2907
Plugins / [Plugin] Re: Notifications system (1.0)
« on June 2nd, 2013, 07:49 PM »
Quote from Arantor on May 31st, 2013, 04:34 PM
Yes, they're required to view notifications, however the notifications are pulled AJAXively, yes? In which case that would presume you only need to load it for the cases when a user is actually viewing them (i.e. as part of the AJAX service) rather than every page load.
To his credit, IIRC I wrote the Ajaxification of the code, so before he released it to us, it had every reason to be loaded on every page.

Currently, only Ajax + the actual /do/notification page need initializing.
(Although I'm planning to redo the /do/ one, because it's... in need of some love, I guess.)
2908
Features / Re: Plugin revs
« on June 2nd, 2013, 07:44 PM »
rev 87
(7 files, 31kb)

+ Added Dragooon's Mentions plugin, along with my modifications (popup fixes, better positioning, allowing self-mentions e.g. as reminders, etc.) (mentions/*)

@ This was mostly done, so that Dragooon (and anyone interested) can look into my changes, to satisfy his curiosity. I'm afraid I can't allow my code changes to be redistributed as BSD, though, because, well... We haven't settled on our license anyway, but it won't be BSD.
2909
Bug reports / Re: display name vs username in pretty urls
« on June 2nd, 2013, 07:29 PM »
Nothing to add on the username vs display name thing, it's really for the best.
Oh, and vbgamer never 'took over', he never did anything with it anyway... If anyone took over, it's me. :P I'm pretty sure I'm 10 times more knowledgeable about this mod than he is, eh.

Okay, one of the things I wanted to discuss, is that I've been looking into giving users some privacy settings for their profile, a la Facebook (sorry).
i.e., they can enter their birth date, but only have it visible to their contacts. Or, enter their localization, and keep it to one of their contact lists, etc.

One of the 'obvious' things would be, how about limiting profile visibility entirely..?
But then it comes down to running the ob_sessrewrite portion that removes profile links, and only do it depending on the user. So it has to be done before pretty URLs are done, of course (easier to test against a profile ID, eh..?), but what would be the best way to do it, really..?
If hundreds of members start saying "my profile is only for contact list 1, 3 and 4", or some crap like that, doing an array('memberID' => 'list of allowed people') might become sizable, and testing against it could be overkill, I guess. Then again, it could also be quite fast, even if it's 'big', because after all there's only so many people that are linked in a page, and thus it's fast to go through the array.

What do you think..?
2910
Off-topic / Re: Doctor Who
« on June 2nd, 2013, 12:18 AM »
Great. I liked him but i miss a slower, more human doctor.