Difference between revisions of "User talk:ECO"

From SEQwiki
Jump to: navigation, search
(Configuration: new section)
Line 1: Line 1:
Hello. I've put a suggested structure onto 2 tools and created [[Software]].
+
Just installed a [http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi generic syntax highlighter]...looks like it works...
  
== Hi ==
+
--[[User:ECO|ECO]] 00:01, 27 February 2010 (UTC)
  
Hey ECO. Please can you make me an admin on the wiki? Also, seems some CSS and images are missing from the install... the 'browse properties' pages look wrong to me, and the 'format=table' output lacks the normal style. e.g.
+
----
* http://seqanswers.com/wiki/Software
 
** Table looks wrong
 
** Browse properties is listed twice
 
* http://seqanswers.com/wiki/Special:Browse/Software
 
** Looks totally wrong. Links are there but icons and table formatting are missing.
 
  
Please can you sign up to smw-users [https://lists.sourceforge.net/lists/listinfo/semediawiki-user] and report these problems? I don't know why the install is slightly broken in this way (actually I never installed semantic bundle :-D).
+
<source lang='python'>
 +
import random
  
:--[[User:Dan|Dan]] 22:45, 22 July 2009 (UTC)
+
contestants = {'bioinfosm':244,\
 +
                'westerman':107,\
 +
                'nilshomer':145,\
 +
                'Joann':19}
  
== About talk pages... ==
+
entries = []
 +
winners = []
  
Hey ECO!
+
#make drawing bowl
 +
for user in contestants.keys():
 +
    for i in range(contestants[user]):
 +
        entries.append(user)
  
If you could somehow redirect each wiki page's talk page to a specific thread in the forum, I think that would be awesome (with a capital AWE!). Talk pages in the wiki are really substandard... for ages I've had the idea to merge phpBB and MW, but I don't really have the time or the know how... simply using a redirect could be one way to easily get the best of both worlds...
+
#conduct drawing
 +
while entries:
 +
    winner = entries[random.randrange(0,len(entries))]  #pick winner
 +
    winners.append(winner) #record winner
 +
    #remove winner from further drawings
 +
    entries = [user for user in entries if user not in winners]
  
i.e. set up an Apache redirect to point each talk page at a Forum page, something like (in forum speak) "Wiki > Talk Pages > Page Name", then set it up so that:
+
#output
 
+
print time.ctime()
* if there is no thread with that name it automatically gets created (hopefully not too hard)
+
print winners
* Threads in that form have links back to the wiki page ...
+
</source>
 
 
 
 
For example, I can see that you forget to sign your comments on my talk page... normally the BB would do this for you... secondly, if I want you to see my reply I need to put it in your talk page, so the thread is destroyed.... sigh.
 
 
 
--[[User:Dan|Dan]] 11:27, 23 July 2009 (UTC)
 
 
 
== Configuration ==
 
 
 
Thanks for the changes ECO!
 
 
 
--[[User:Dan|Dan]] 09:22, 5 January 2010 (UTC)
 

Revision as of 02:01, 27 February 2010

Just installed a generic syntax highlighter...looks like it works...

--ECO 00:01, 27 February 2010 (UTC)


import random

contestants = {'bioinfosm':244,\
                'westerman':107,\
                'nilshomer':145,\
                'Joann':19}

entries = []
winners = []

#make drawing bowl
for user in contestants.keys():
    for i in range(contestants[user]):
        entries.append(user)

#conduct drawing
while entries:
    winner = entries[random.randrange(0,len(entries))]  #pick winner
    winners.append(winner) #record winner
    #remove winner from further drawings
    entries = [user for user in entries if user not in winners] 

#output
print time.ctime()
print winners