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 - live627
91
Other software / Re: SM.org compromised
« on August 20th, 2013, 08:25 AM »
Quote from MultiformeIngegno on August 19th, 2013, 11:10 PM
If you're okay being paranoid why shouldn't I be okay with that? :)
3rd party yadda yadda yadda

Analogy: I put security cameras in your house and you'll trust me to not share what I find. Trust goes out the window.
92
Other software / Re: SM.org compromised
« on August 17th, 2013, 11:14 AM »
Quote from MultiformeIngegno on August 17th, 2013, 10:37 AM
I trust this password manager. :-)
http://www.passpack.com/
I would not trust them. I'm paranoid, okay?
93
Other software / Re: SM.org compromised
« on August 13th, 2013, 11:11 AM »
Quote
1.    Relevant xkcd : http://xkcd.com/936/
Touché
94
Archived fixes / Re: Just emptied the boards table and got an error
« on August 10th, 2013, 02:52 AM »
Just got around to testing this again. It works.
95
Archived fixes / Re: Flexbox, meet code
« on August 3rd, 2013, 01:56 PM »
Quote
Please note that, very annoyingly, pressing Quick Edit on one of these posts and then Cancel, will restore the original bug. Well, I can't do much about that one, can I..?
I see what you mean. That procedure also brings up the bug in Firefox.
96
Bug reports / Re: Periodic notifications don't seem to work
« on August 3rd, 2013, 01:52 PM »
Example: some of the get***() methods are present in both Notification and Notifier.
97
Off-topic / Re : 3D'ing
« on August 3rd, 2013, 01:30 PM »
"It's simple math, really" -- now I wonder who said that :lol:
98
Bug reports / Re: Periodic notifications don't seem to work
« on August 3rd, 2013, 01:27 PM »
Commit it and I will test it.
Quote
If you get that, you're already halfway through the system.
Oh, that's the easy part. What's confusing for me is the presence of same-name methods across multiple objects.
99
Bug reports / Re: Periodic notifications don't seem to work
« on August 3rd, 2013, 07:39 AM »
Ok, so I've been playing around some more. The biggest issue is that the email body is duplicated since it is HTML. II have yet to understand why.

The above error is because it is calling on the Notification object and wants the getEmail() method from a Notifier.

Code: [Select]
Index: I:/repos/wedge/trunk/Themes/default/Notifications.template.php
===================================================================
--- I:/repos/wedge/trunk/Themes/default/Notifications.template.php (revision 2194)
+++ I:/repos/wedge/trunk/Themes/default/Notifications.template.php (working copy)
@@ -116,9 +116,10 @@
  $str .= "\n" . $title . "\n" . str_repeat('=', strlen($title)) . "\n";
 
  foreach ($notifs as $n)
- $str .= $n->getEmail();
-
- $str .= "\n\n";
+ {
+ list (, $n) = $n->getNotifier()->getEmail($n, array());
+ $str .= $n . "\n\n";
+ }
  }
 
  return $str;

Let's save some memory! $valid_notifiers is only checked for existence, so why not use a bool instead of an object?

Code: [Select]
Index: I:/repos/wedge/trunk/Sources/Notifications.php
===================================================================
--- I:/repos/wedge/trunk/Sources/Notifications.php (revision 2194)
+++ I:/repos/wedge/trunk/Sources/Notifications.php (working copy)
@@ -609,7 +608,7 @@
  {
  $status = isset($data['email_notifiers'][$notifier->getName()]) ? $data['email_notifiers'][$notifier->getName()] : 0;
  if ($status < 2 && (empty($data['disabled_notifiers']) || !in_array($notifier, $data['disabled_notifiers'])))
- $valid_notifiers[$notifier->getName()] = $notifier;
+ $valid_notifiers[$notifier->getName()] = true;
  }
 
  if (empty($valid_notifiers))


Objects shouldn't be this hard to understand. I think it's the duplication that's the problem. Perhaps Notification can go, and its leftovers merged with weNotif. Also, shouldn't Notifier be abstract?
100
Off-topic / Re: Thoughts from Jeff Atwood
« on August 3rd, 2013, 12:18 AM »
??
101
Bug reports / Re: Periodic notifications don't seem to work
« on August 3rd, 2013, 12:16 AM »
Is that someone else me? :P

I'm also finding it hard to understand. I've been doing my head in trying to make it work. The emails send, but the data isn't quite right. :^^;:
102
Off-topic / Re: Thoughts from Jeff Atwood
« on August 3rd, 2013, 12:08 AM »
Quote from Nao on August 2nd, 2013, 08:02 PM
That's 'cuz you' sma'ter than the 'est o' us 'ednecks! :lol:
Don't embarrass yourself.
103
Bug reports / Re: Periodic notifications don't seem to work
« on August 2nd, 2013, 07:06 AM »
Fatal error: Call to undefined method Notification::getEmail() in I:\www\wedge\trunk\Themes\default\Notifications.template.php on line 119


That's when trying to run the schd task.
104
Off-topic / Re: Thoughts from Jeff Atwood
« on August 2nd, 2013, 02:47 AM »
Hard refresh to fix smileys.
105
Bug reports / Re: No error box on preview
« on August 2nd, 2013, 02:32 AM »
Bumps!