Berkeley CSUA MOTD:Entry 48130
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
5/25    

2007/9/20-22 [Computer/SW/Languages/C_Cplusplus] UID:48130 Activity:kinda low
9/20    Is there a way in Twiki to have children inherit settings from a
        parent? I know there is a WebTopicEditTemplate which you can use
        for an entire Web, but what I want is to be able to have all of
        the children under a given topic automatically be populated with
        a template of settings when created. Is there a way to do that?
        Right now I copy and paste my settings each time and not only does
        that take time but there's a chance I forget to do it or else make
        an error.
        \_ Setting of arbitrary parent *topic*?  I don't know of any feature
           by default.  For my purpose, I wrote a plugin that made twiki
           use a custom EditTemplate depending on the suffix of a topic
           name.  I imagine similar concept can be used to check the the
           parent variable.  Search twiki site first to see if such plugins
           already exist.
           \_ Well, I just want the concept of a child topic inheriting a
              template from its parent topic.
              \_ But how do you specify *which* settings it inherit?  When
                 you first create a topic, twiki loads the default topic
                 template and loads it in the edit box.  Settings are
                 interpreted on the fly by running through the topic text
                 file twice.  The settings are just part of normal text
                 as far as it's considered.  You need a way to specify which
                 setting to inherit by perhaps wrapping it around a
                 TWikiVariable.  And given that you can change the parent
                 of a topic by changing its metadata, interpreting it on the
                 fly is probably the best way to handle it given current
                 twiki behavior.
                 \_ It should inherit all of them. Every Set = from the
                    parent gets set in the child at creation time. If the
                    parent changes later then too bad.
                    \_ Keep in mind that TWiki didn't even have a concept
                       of parent/child until few years ago.  At least for
                       the current implementation of new topic template
                       reading, it looked to me like you'd have to actually
                       overwrite that function within twiki's edit script
                       itself and can't be extended with just plugins.  That
                       is, grabbing the variable defines from parent and
                       putting it in place during creation.  What I was
                       suggesting where the settings are read on-the-fly
                       at each access *can* be done via plug-in.  Choosing
                       the right wiki is a difficult task, partly because
                       the ideals of each wiki devel teams are different.
                       Wikis were originally meant to be unrestricted, which
                       is an ideal that TWiki developers still try to hold
                       to.  That is one of the reason why there are commercial
                       wiki implementations popping up designed from groun-up
                       to have access restrictions.  My main reason for
                       choosing TWiki?  It's one of the few that supports
                       versioning of attachments, and rest of my group is
                       still very shy of php, which ruled out MediaWiki.
                       (And I believe MediaWiki has even less access control.)
2025/05/25 [General] UID:1000 Activity:popular
5/25    

You may also be interested in these entries...
2013/5/6 [Transportation/Car, Computer/HW/Printer] UID:54672 Activity:nil
5/6     http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?spf_p.tpst=kbDocDisplay&spf_p.prp_kbDocDisplay=wsrp-navigationalState%3DdocId%253Demr_na-c03747345-1%257CdocLocale%253D%257CcalledBy%253D&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken
        \_ seems like I get these every 6 months or so from HP.  Do all drives
           have these kind of issues and I only see the ones from HP because
           they are diligent about reporting/fixing these issues?  Or do they
           suck?   (It's not actually their drives so...)  Also, do I really
           need to bring down my production infrastructure and fix all this
	...
2012/7/19-11/7 [Computer/SW/Languages/C_Cplusplus] UID:54439 Activity:nil
7/19    In C or C++, how do I write the code of a function with variable
        number of parameters in order to pass the variable parameters to
        another function that also has variable number of parameters?  Thanks.
        \_ The usual way (works on gcc 3.0+, Visual Studio 2005+):
               #define foo(fmt, ...) printf(fmt, ##__VA_ARGS__)
           The cool new way (works on gcc 4.3+):
	...
2008/6/24-27 [Computer/Companies/Google, Computer/Companies/Yahoo] UID:50360 Activity:nil Cat_by:auto
6/24    Yahoo vs. Google vs. Bear Sterns employee attrition. Yahoo may be
        dying but it's nothing compared to Bear. Google still rocks, so
        hold on to their stocks! And if you're leaving Yahoo, there's
        a resignation-letter template to use.
        http://seekingalpha.com/article/82514-yahoo-google-bear-sterns-the-employee-turnover-perspective?source=yahoo
	...
2007/7/20-22 [Computer/SW/Languages/C_Cplusplus] UID:47355 Activity:nil
7/20  I was handed a templeted code that builds with gcc3.3.3 but not 3.4.4.
      I'm not all that hot with templetes, so I'm having trouble figuring
      out what's wrong.  The error I get is:
        TxBoundedFunctor.cpp:29: error: `template<class RetType, class ArgType>
           class TxFunctorBase' used without template parameters
      where TxBoundedFunctor extends TXFunctor extents TxFunctorBase. Like so:
	...
2006/11/2-4 [Computer/SW/Unix] UID:45107 Activity:low
11/02   I need to include instructions on how to create a tcpdump file as part
        of a Word Doc testplan . What I would like to do is to be able to cut
        and paste from a Unix shell window into a word document without
        losing the formatting or having it come out like regular text.
        Is there a template or mode I can use for this inside word?
        --Thanks Stressed out linux hacker
	...
2006/2/21-23 [Computer/SW/Languages/Misc, Computer/SW/Languages/C_Cplusplus, Computer/SW/Languages/Java] UID:41946 Activity:nil
2/21    Silly poll: What is your favorite design pattern?  Gang-of-Four or not.
        \_ Template method: .
        \_ Houndstooth: .
           \_ Is that structural or creational?
        \_ POLKA DOT: .
        \_ I've never seen a really good reason to use design patterns other
	...