Welcome, Guest. Please login or register.

Author Topic: Quiet  (Read 6409 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Quiet
« on: February 02, 2010, 06:33:49 PM »
It seems a bit quiet round here these days. Where is everyone? Bloodline? Adz? Speel? Gadge? Karlos? Oh wait, Karlos is buried under a great big pile of PHP. ;)
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline dannyp1

  • Hero Member
  • *****
  • Join Date: Aug 2006
  • Posts: 664
  • Country: us
  • Gender: Male
    • Show only replies by dannyp1
Re: Quiet
« Reply #1 on: February 02, 2010, 06:37:37 PM »
I think EAB has been gaining in popularity lately.  I think there are more actual user's there and not just social chit-chatters who no longer even compute with Amiga's.
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Quiet
« Reply #2 on: February 02, 2010, 06:41:30 PM »
Well, it's the "chit-chatters" I was talking about really ;)
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Speelgoedmannetje

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 9656
    • Show only replies by Speelgoedmannetje
Re: Quiet
« Reply #3 on: February 02, 2010, 07:55:33 PM »
I'm not on EAB, just too busy with my life atm (working and being busy with my personal life)
Yes I do have time to post here, but I lack the inspiration. In the spare free time I'm just too tired to spare some fresh thoughts. :(
And the canary said: \'chirp\'
 

Offline tokyoracer

  • Hero Member
  • *****
  • Join Date: Feb 2006
  • Posts: 1590
    • Show only replies by tokyoracer
Re: Quiet
« Reply #4 on: February 02, 2010, 08:20:51 PM »
Quote from: motorollin;541203
It seems a bit quiet round here these days. Where is everyone? Bloodline? Adz? Speel? Gadge? Karlos? Oh wait, Karlos is buried under a great big pile of PHP. ;)
Karlos is busy shopping in Tesco for cheaper goods in this economic climate.

Though now you mention it, I do remember there being more regulars and genrally more active on here, maybe it's because of the new layout?  IMHO, I do prefer the old A.Org site for it's speed and ease of use, maybe thats why they have gone elsewhere?
Only reason I say this now is i'm less likely to get a red-hot poker from Wayne.
« Last Edit: February 02, 2010, 08:23:38 PM by tokyoracer »
 

Offline dannyp1

  • Hero Member
  • *****
  • Join Date: Aug 2006
  • Posts: 664
  • Country: us
  • Gender: Male
    • Show only replies by dannyp1
Re: Quiet
« Reply #5 on: February 02, 2010, 08:57:55 PM »
As I've said several times before, this site is being operated with a 1995 mindset and it is 2010.  What might have been important to copyright and patent holders 15 years ago, is not worth their bother today.  To have moderators patrol the threads looking for links that go to links that go to other links where there might be a file that can be downloaded that might be questionable is insane.  There are links to EBay all the time and there are illegal roms and copies of programs for sale there at all times.  It's funny they never get shut down.  But as the moderators like to say "We're not EBay" or "We're not Aminet".  Does that attitude maybe explain a little better the lack of activity.
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Quiet
« Reply #6 on: February 02, 2010, 09:12:50 PM »
Quote from: motorollin;541203
It seems a bit quiet round here these days. Where is everyone? Bloodline? Adz? Speel? Gadge? Karlos? Oh wait, Karlos is buried under a great big pile of PHP. ;)


It's worse than that, it's about 50% php and 50% PCRE.
int p; // A
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Quiet
« Reply #7 on: February 02, 2010, 09:20:26 PM »
Quote from: Karlos;541232
It's worse than that, it's about 50% php and 50% PCRE.


Sounds bloody ghastly :lol:
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Quiet
« Reply #8 on: February 02, 2010, 10:18:36 PM »
Quote from: motorollin;541236
Sounds bloody ghastly :lol:


Well, at least it's clean conceptually:



The PCRE is in the implementation of process() for the various XXXXRewriter classes above. Some of it is... well, nasty :)
int p; // A
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Quiet
« Reply #9 on: February 02, 2010, 10:24:55 PM »
There I was thinking you just had a massive list of of str_replace($css_code, $html_code, $aorg_code) ;)
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Quiet
« Reply #10 on: February 02, 2010, 10:35:01 PM »
Quote from: motorollin;541248
There I was thinking you just had a massive list of of str_replace($css_code, $html_code, $aorg_code) ;)

I do*, they are just inside the various MarkupRewriter::process() implementations.

*except they're mostly preg_replace() / preg_replace_callback()

Also, I never tackle anything I can't draw a picture of first :lol:
« Last Edit: February 02, 2010, 10:59:32 PM by Karlos »
int p; // A
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Quiet
« Reply #11 on: February 02, 2010, 11:56:20 PM »
Quote from: Karlos;541251
I do*, they are just inside the various MarkupRewriter::process() implementations.

*except they're mostly preg_replace() / preg_replace_callback()

I really have nothing constructive to say to that, apart from:

OMG j00 iz teh 1337++!!!1

Quote from: Karlos;541251
Also, I never tackle anything I can't draw a picture of first :lol:

Hmm yes, I've found recently that physical diagramming has helped me to understand things when revising for exams and planning my dissertation. I've even resorted to using paper :nervous: :rtfm:
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Quiet
« Reply #12 on: February 04, 2010, 12:34:43 AM »
As an actual example, the following class converts the CSS popup menu you get against the post name into a HTML select list that contains the same options.

Code: [Select]
class PostMenuRewriter implements MarkupRewriter {
  public function process($markupText)
  {
    $this->postMenu = array();
    // replace the hidden <div> containing the post menu and get the options
    $markupText = preg_replace_callback(
      '@<!-- post ([0-9]+) popup menu -->.*?<!-- / post [0-9]+ popup menu -->@s',
      array(&$this, 'reworkPostMenu'),
      $markupText
    );
    // replace the inline <script> that binds the menu to the post and replace with options
    $markupText = preg_replace_callback(
      '@<script\s+type=&quot;text/javascript&quot;>\s+vbmenu_register\(&quot;postmenu_([0-9]+)&quot;,\s+true\);\s+</script>@',
      array(&$this, 'insertMenu'),
      $markupText
    );
    $this->postMenu = null;
    return $markupText;
  }

  private function reworkPostMenu($matches)
  {
    // called in pass 1: grab the post menu options and store them by post Id for pass 2
    $postId = $matches[1];
    $markupText=str_replace('rel=&quot;&quot;nofollow&quot;&quot;,'',$matches[0]);
    $matches=array();
    preg_match_all(
      '@<a href=&quot;&quot;(.*?)&quot;\s*>(.*?)</a>@&quot;,
      $markupText,
      $matches
    );
    $content = '<select onchange=&quot;if(this.value!=\'\'){window.location=this.value;}&quot;><option value=&quot;&quot; selected>-- choose action --</option>';
    foreach($matches[1] as $n => $url) {
      $content .= '<option value=&quot;' . $url . '&quot;>' . $matches[2][$n] . '</option>';
    }
    $content .= '</select>';
    $this->postMenu[$postId] = $content;
    return '';
  }

  private function insertMenu($matches)
  {
    // called in pass 2: replace the redundant postmenu_XXX inline script with our select list menu
    $postId = $matches[1];
    return $this->postMenu[$postId];
  }

  private $postMenu = array();
}
« Last Edit: February 04, 2010, 12:50:15 AM by Karlos »
int p; // A
 

Offline the_leander

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 3448
    • Show only replies by the_leander
    • http://www.extropia.co.uk/theleander/
Re: Quiet
« Reply #13 on: February 04, 2010, 03:48:49 PM »
Sorry for being away, been rather busy setting up (and now currently going through) a course so as to get my SIA licence.

Passed both my Maths and English preliminary exams today, having a crack at a tougher version of the English one tomorrow for fun as the SIA practical stuff doesn't start till next week. Should be interesting.

I guess it'll mean that I'll be buying in the next curry, eh lads?
Blessed Be,
Alan Fisher - the_leander

[SIGPIC]http://www.extropia.co.uk/theleander/[/SIGPIC]
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Quiet
« Reply #14 on: February 04, 2010, 04:04:22 PM »
Quote from: the_leander;541526
Sorry for being away, been rather busy setting up (and now currently going through) a course so as to get my SIA licence.

Passed both my Maths and English preliminary exams today, having a crack at a tougher version of the English one tomorrow for fun as the SIA practical stuff doesn't start till next week. Should be interesting.


Good luck mate!

Quote
I guess it'll mean that I'll be buying in the next curry, eh lads?


:afro:
int p; // A