Honda XRV Forum banner

1 - 20 of 32 Posts

·
Mines a big red one
Joined
·
6,178 Posts
Discussion Starter #1
Why is it that you have an emoticon on the left, this one :arrow: , that never seems to be used ( this time doesn't count ) and the poor old thumbs up, which is used quite a lot, is buried somewhere that's a PIA to find.

Please, please pretty please can you swop them round? :D


All those in favour say aye.
 

·
Cant stop 'tinkering'
Joined
·
1,818 Posts
Aye :thumbright: :thumbright: :thumbright: :thumbright: :thumbright:
 

·
skeptical old git
Joined
·
1,734 Posts
we need to rank emoticons by frequency of use!

Code:
#!/usr/bin/perl

while(<>) {
  foreach (split(/\s+/,$_)) {
	  m/:(\w+):/ && ++$freq{$1};
   }
}
foreach $emoticon (sort {$freq{$b} <=> $freq{$a}} keys %freq) {
  print "$freq{$emoticon}\t$emoticon\n"
}
no wait for someone to reduce that to 2 lines :geek:
 

·
Complete Member
Joined
·
3,904 Posts
yup that's code alright, doesn't mean a damned thing to me :dark1: :hal :hiding:
 

·
Bloody furriner
Joined
·
5,009 Posts
Code:
undef($/);$m=<>;$fr{$1}++ while ($m=~s/.*?:(\w+)://s);print map("$fr{$_}: $_\n", sort({$fr{$b}<=>$fr{$a}} keys %fr));
Anyway, short enough then? ;-)
 

·
skeptical old git
Joined
·
1,734 Posts
Rubberchicken said:
Code:
# oi!  deleting line breaks is just cheating!
undef($/);
$m=<>;
$fr{$1}++ while ($m=~s/.*?:(\w+)://s);
print map("$fr{$_}: $_\n", sort({$fr{$b}<=>$fr{$a}} keys %fr));
Anyway, short enough then? ;-)
you can lose the while loop in the regex substitution...

Code:
undef($/);
$m=<>;
$m=~s/:(\w+):/$fr{$+}++/seg;
print map("$fr{$_}: $_\n", sort({$fr{$b}<=>$fr{$a}} keys %fr));
and undefining $/ is a cool trick but we can trim two lines there...

Code:
s/:(\w+):/$fr{$+}++/seg while(<>);
print map("$fr{$_}: $_\n", sort({$fr{$b}<=>$fr{$a}} keys %fr));
:blackeye:
 

·
Registered
Joined
·
73 Posts
Even shorter if you take all the rubbish out....

while print map sort keys
There you are I've broken the Code, you did mean it was a coded message or have I missed the point ?? :oops:
 

·
skeptical old git
Joined
·
1,734 Posts
Hagalaz said:
Even shorter if you take all the rubbish out....

while print map sort keys
There you are I've broken the Code, you did mean it was a coded message or have I missed the point ?? :oops:
yep, it was a coded message, but it's supposed to decode to icenian and rubberchicken need to get out more
 

·
skeptical old git
Joined
·
1,734 Posts
12 inch said:
If this carries on I am off to the varadero section and its dark and scary in there :shaking:
hey, it's no worse than when you hairy arsed types start discussing carburettors or suspension :?
 

·
ignore the vain
Joined
·
943 Posts
hairy arsed types
How would you know if I have an hairy arse :?: :?: Thats it two pairs of skippies from now on :shock:

Cor soon as you mention varadero's they gang up wonder if its the same in the wild the varadero's stalking the innocent xrv :shock: :shock:
 

·
skeptical old git
Joined
·
1,734 Posts
Mabel said:
at least noones fighting yet :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
There'll be a fight in a while, when the Java programmers start to post
(by about this time tomorrow, they may have finished coding their version).
 

·
Wing Commander
Joined
·
14,437 Posts
OK, who remembers when Java was a coffee and Spam was a tinned, processed meat?
As Chas 'n' Dave say: "Don't anyone speak English anymore?"
 
1 - 20 of 32 Posts
Top