euglug.org

[작성자:] admin

  • [Python] markup, markdown



    Rob HudsonFri Jun 9 16:41:25 PDT 2006

    I was looking at Pytextile just now, and also markdown:
    http://www.freewisdom.org/projects/python-markdown/
    
    I noticed on the side a 0.1 release that converts the Open Document 
    format produced by OpenOffice to markdown text...
    http://www.freewisdom.org/projects/python-markdown/odt2txt.php
    
    Pretty interesting.  :)  Imagine having a website where you can upload a 
      file saved from OpenOffice, and it converts it to markdown on the fly 
    and looks pretty online...
    
    I was looking at markdown mainly because some of the open Django code 
    I've been reading uses it for marking up text for blogs or comments.
    
    -Rob
    
  • [Eug-lug] Stone Soup Server Time.



    Mike CherbaFri Jun 9 14:30:46 PDT 2006

    The thing that has come up is putting together a lightweight Linux
    distro based on something like DSL that they could use to take advantage
    of older Hardware.  Also potentially doing some training for them/their
    clientel about Linux.
    			-Mike
    
    
    On Fri, 2006-06-09 at 11:49 -0700, Michael Miller wrote:
    > Mike,
    > 
    > Maybe we should use a meeting date to help CRRC out.  I'm sure they
    > have some need, or technical need we could collectively fulfill.
    > 
    > On 6/9/06, Mike Cherba <mike.cherba at caviumnetworks.com> wrote:
    > > I have not, and I don't think we should just yet.  We need to find a way
    > > to help balance the scales a little first.  Lorraine and CRRC are
    > > letting us use their space to meet at the moment.  We should work a
    > > little on something for them before we ask for more.
    > >                         -Mike
    > >
    > >
    > >
    > > On Fri, 2006-06-09 at 10:50 -0700, larry price wrote:
    > > > On 6/9/06, Bob Miller <kbob at jogger-egg.com> wrote:
    > > > > larry price wrote:
    > > > >
    > > > > > There has been some discussion off list about upgrading tux.euglug.org
    > > > > > to a more current hardware level so that we can run a more recent OS
    > > > > > and have access to some fancy new software, so that we can revitalise
    > > > > > the website, so that more people come to linux and share the source
    > > > > > etc.
    > > > >
    > > > > Has anyone talked to Lorraine about this?  I know that FreeGeek gives
    > > > > nonprofits much higher-spec machines than anyone has volunteered so
    > > > > far, so maybe CRRC has some too.
    > > >
    > > > I haven't, I kind of doubt that MIke has.
    > > > _______________________________________________
    > > > EUGLUG mailing list
    > > > euglug at euglug.org
    > > > http://www.euglug.org/mailman/listinfo/euglug
    > > --
    > > Mike Cherba
    > > Cavium Networks
    > > 883 Brookside Dr
    > > Eugene, OR 97405
    > > phone: (541) 684-3820
    > > Cell:  (541) 914-2188
    > > mike.cherba at caviumnetworks.com
    > > www.caviumnetworks.com
    > > _______________________________________________
    > > EUGLUG mailing list
    > > euglug at euglug.org
    > > http://www.euglug.org/mailman/listinfo/euglug
    > >
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    -- 
    Mike Cherba
    Cavium Networks
    883 Brookside Dr
    Eugene, OR 97405
    phone: (541) 684-3820
    Cell:  (541) 914-2188
    mike.cherba at caviumnetworks.com
    www.caviumnetworks.com
    
  • [Eug-lug] Stone Soup Server Time.



    Garl GrigsbyFri Jun 9 13:22:13 PDT 2006

    Bob Miller wrote:
    > Bob Crandell wrote:
    >
    >   
    >> What OS were you wanting?
    >>     
    >
    > Microsoft Windows 2003 Server Edition, of course!
    >
    >   
    Vista Beta would be a better choice.
    
  • [Python] Asterisk in Python?



    Rob HudsonFri Jun 9 12:31:06 PDT 2006

    > There was a recent Django usegroup thread that I thought explained it 
    > pretty well as it was new to me too. (sorry for the gawdawful URL. 
    > Google oughta use Django!):
    > http://groups.google.com/group/django-users/browse_thread/thread/1a1e615f9d0487e4/2015520c8d1300dd?q=kwargs&rnum=2 
    
    Now that I see it written like this:
    some_func(*args, **kwargs)
    
    I realize I have seen it in lots of places, but never really knew the 
    details.  Thanks for pointing that out.
    
    -Rob
    
  • [Python] Asterisk in Python?



    John HeaslyFri Jun 9 12:19:27 PDT 2006

    On Jun 9, 2006, at 12:09 PM, Rob Hudson wrote:
    
    > I was reading this page about template tags in Django:
    > http://www.b-list.org/weblog/2006/06/07/django-tips-write-better- 
    > template-tags
    >
    > He has some Python code that I never knew existed.   In the last  
    > code sample in the sub-section titled, "Iteration 4: Make and  
    > Model" he has this code:
    > ... snip ...
    > Hmmm, that's kind of cool.  I never knew that existed.
    >
    > -Rob
    > _______________________________________________
    > Python mailing list
    > Python at euglug.org
    > http://www.euglug.org/mailman/listinfo/python
    
    There was a recent Django usegroup thread that I thought explained it  
    pretty well as it was new to me too. (sorry for the gawdawful URL.  
    Google oughta use Django!):
    http://groups.google.com/group/django-users/browse_thread/thread/ 
    1a1e615f9d0487e4/2015520c8d1300dd?q=kwargs&rnum=2
    
    John
    
    
  • [Eug-lug] Stone Soup Server Time.



    Bob MillerFri Jun 9 12:18:59 PDT 2006

    Bob Crandell wrote:
    
    > What OS were you wanting?
    
    Microsoft Windows 2003 Server Edition, of course!
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Python] Asterisk in Python?



    Rob HudsonFri Jun 9 12:09:49 PDT 2006

    I was reading this page about template tags in Django:
    http://www.b-list.org/weblog/2006/06/07/django-tips-write-better-template-tags
    
    He has some Python code that I never knew existed.   In the last code 
    sample in the sub-section titled, "Iteration 4: Make and Model" he has 
    this code:
    
    class LatestContentNode(Node):
         def __init__(self, model, num, varname):
             self.num, self.varname = num, varname
             self.model = get_model(*model.split(‘.’))
    
         def render(self, context):
             context[self.varname] = 
    self.model._default_manager.all()[:self.num]
             return ”
    
    In the description, he states:
    the asterisk in there is a Python shortcut for saying “take this list of 
    things and use it as your arguments”
    
    I had this conversation with Python:
     >>> l = [1,2]
     >>> *l
       File "<stdin>", line 1
         *l
         ^
    SyntaxError: invalid syntax
     >>> def fun(a,b):
    ...     print a
    ...     print b
    ...
     >>> fun(l)
    Traceback (most recent call last):
       File "<stdin>", line 1, in ?
    TypeError: fun() takes exactly 2 arguments (1 given)
     >>> fun(*l)
    1
    2
    
    Hmmm, that's kind of cool.  I never knew that existed.
    
    -Rob
    
  • [Eug-lug] Stone Soup Server Time.



    Bob CrandellFri Jun 9 12:04:08 PDT 2006

    On Thu, 2006-06-08 at 07:23 -0700, Bob Miller wrote:
    > larry price wrote:
    > 
    > > What we will need
    > > 
    > > RAM >= 1 Gb
    > > disks >= pair of 80GB for mirror.
    > 
    > I think I have a matched pair of Western Digital 80 GB drives.  I
    > can't remember the name or model number but they were the hot stuff
    > around 2002 with 8 MB cache.  Something like WD800JB?
    > 
    
    If it isn't too late, we'uns have an AsUS TUSi-M Motherboard with a 1G
    Celeron we would like to throw into the mix.  In fact, if someone brings
    that 4U rack mount case into ComputerBase, we'll even put the hardware
    together.
    
    What OS were you wanting?
    
    Bob Crandell
    
    
  • [Eug-lug] Stone Soup Server Time.



    Michael MillerFri Jun 9 11:49:34 PDT 2006

    Mike,
    
    Maybe we should use a meeting date to help CRRC out.  I'm sure they
    have some need, or technical need we could collectively fulfill.
    
    On 6/9/06, Mike Cherba <mike.cherba at caviumnetworks.com> wrote:
    > I have not, and I don't think we should just yet.  We need to find a way
    > to help balance the scales a little first.  Lorraine and CRRC are
    > letting us use their space to meet at the moment.  We should work a
    > little on something for them before we ask for more.
    >                         -Mike
    >
    >
    >
    > On Fri, 2006-06-09 at 10:50 -0700, larry price wrote:
    > > On 6/9/06, Bob Miller <kbob at jogger-egg.com> wrote:
    > > > larry price wrote:
    > > >
    > > > > There has been some discussion off list about upgrading tux.euglug.org
    > > > > to a more current hardware level so that we can run a more recent OS
    > > > > and have access to some fancy new software, so that we can revitalise
    > > > > the website, so that more people come to linux and share the source
    > > > > etc.
    > > >
    > > > Has anyone talked to Lorraine about this?  I know that FreeGeek gives
    > > > nonprofits much higher-spec machines than anyone has volunteered so
    > > > far, so maybe CRRC has some too.
    > >
    > > I haven't, I kind of doubt that MIke has.
    > > _______________________________________________
    > > EUGLUG mailing list
    > > euglug at euglug.org
    > > http://www.euglug.org/mailman/listinfo/euglug
    > --
    > Mike Cherba
    > Cavium Networks
    > 883 Brookside Dr
    > Eugene, OR 97405
    > phone: (541) 684-3820
    > Cell:  (541) 914-2188
    > mike.cherba at caviumnetworks.com
    > www.caviumnetworks.com
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    
  • [Eug-lug] Stone Soup Server Time.



    Bob MillerFri Jun 9 11:42:46 PDT 2006

    Mike Cherba wrote:
    
    > I have not, and I don't think we should just yet.  We need to find a way
    > to help balance the scales a little first.  Lorraine and CRRC are
    > letting us use their space to meet at the moment.  We should work a
    > little on something for them before we ask for more.
    
    What does CRRC need besides volunteer-hours?  Do we get extra credit
    if we're expert volunteers?  That is, are there tasks that EUGLUGsters
    could do that most volunteers couldn't?
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com