Re: [Discuss] wiki suggestion?
On August 1, 2014, Bill Bogstad wrote: So if I understand what you are saying, MediaWiki gives either zero access or 100% access? Sort of like having a login on a Unix/Linux system where every file/directory is Read/Write world. You still need a login to do anything, but once you have one you can do practically anything. Nope, it's better than that. :-) You can define groups of users, each with different rights: read, write, edit, delete, rename, and a few dozen others. Here's Wikipedia's configuration in this regard: http://en.wikipedia.org/wiki/Special:ListGroupRights To grant a particular right to a particular group of users, you simply assign to a PHP array: $wgGroupPermissions['user']['read'] = true; You can also create arbitrary new types of rights, like the right to turn pages blue or the right to delete articles whose title begins with X. The core MediaWiki software won't know and respect those rights, but you can create extensions that do. Once you have your list of rights and the users who have them, you can apply those rights at the namespace level: $wgNamespaceProtection['my-namespace'] = array( 'right1', 'right2' ); or at the whole wiki level. What you cannot do is assign rights around an INDIVIDUAL article or other collections of articles. This is where MediaWiki falls down compared to certain other wiki software. -- Dan Barrett dbarr...@blazemonger.com Author, MediaWiki (O'Reilly) ___ Discuss mailing list Discuss@blu.org http://lists.blu.org/mailman/listinfo/discuss
Re: [Discuss] Seeking information on binaries called entities and fixup
In the 'strings' output, I noticed a typo - perfect for searching code because you hope people don't make too many of the SAME typos across multiple projects. What I noticed is that one of the entities was pount; (instead of pound;) When searching OHLOH (now Black Duck), it found 177 matches. Sadly their engine does not search literal strings even when they say they do... they ignore the and the ; Still, it's a really good start at a very small haystack for finding the original source of this code. https://code.ohloh.net/search?s=%26pount Then I added the term brvbar in a compound search, but that turned up zero results - which means that this original source is not found in their database. On Sat, Aug 2, 2014 at 1:42 AM, Tom Metro tmetro+...@gmail.com wrote: What's the big picture that you are trying to accomplish with the script? Presenting the Telecom Digest on a web site? Maybe an off-the-shelf mail archiving tool is a better way to go? (Like MHonArc.) Agreed, if you just want to put the Digest on the web, then I'd feed it to MHonArc, or similar. Out of curiosity, I looked at the MHonArc sources to see if there were such files (entities and fixup), but no. MHonArc is written in Perl. That said, there is quite a bit of code to deal with sanitizing or escaping content for conversion to HTML for display. To wit: http://www.mhonarc.org/release/MHonArc/latest/lib/mhtxtplain.pl http://www.mhonarc.org/release/MHonArc/latest/lib/mhtxtenrich.pl http://www.mhonarc.org/release/MHonArc/latest/lib/mhtxthtml.pl And, even with that, there is a big security warning on the homepage for yet another script injection vulnerability. That's because MHonArc doesn't fully parse the HTML, nor does it use a white-listing approach. Basically, with MHonArc, you should not enable HTML in your mail archives. Despite the obvious weakness of MHonArc, I'm simply pointing out the obvious that rolling your own solution that mimics MHonArc's feature set would be quite a project. What language is the script written in? 'fixup' remains a mystery, Fixup is a mystery, but at least one thing it probably did was deal with angle brackets and keywords. but you probably know enough about 'entities' to replace it with some in-line code. Greg gave you a PHP example. It could be done as a one-liner in Perl, with the assistance of a module. Greg Rundlett http://eQuality-Tech.com http://freephile.org ___ Discuss mailing list Discuss@blu.org http://lists.blu.org/mailman/listinfo/discuss
Re: [Discuss] Seeking information on binaries called entities and fixup
On 8/2/2014 1:42 AM, Tom Metro wrote: Quoting your original message: ...I'm seeking information about a binary named entities, and one named fixup. I've found them in a script that processes emails into html pages for publications, but the script's author isn't available, and neither is working. I gather the script is custom and not from some project? My guess would be that these tools were borrowed from some other project. Probably a mail archiving tool. Some more searching might turn up their origin. I didn't see any mention of the name anywhere in this context. What's the big picture that you are trying to accomplish with the script? Presenting the Telecom Digest on a web site? Maybe an off-the-shelf mail archiving tool is a better way to go? (Like MHonArc.) AFAICT, it's intended to replace HTML reserved characters with HTML entities. Less-than becomes lt;, etc. What language is the script written in? 'fixup' remains a mystery, but you probably know enough about 'entities' to replace it with some in-line code. Greg gave you a PHP example. It could be done as a one-liner in Perl, with the assistance of a module. I don't know what language it was written in. I accepted help from a volunteer who installed several scripts, and this binary was in one of them. I'll try the PHP that Greg suggested, and rebuild the process. Bill -- E. William Horne William Warren Consulting 339-364-8487 ___ Discuss mailing list Discuss@blu.org http://lists.blu.org/mailman/listinfo/discuss
[Discuss] Mutt showing Mailbox is read-only. error
I use mutt for email at the Telecom Digest, and our 'new' machine has developed an annoying habit: when I open my default mailbox, and try to delete an email, I get the error Mailbox is read-only.* *I tried using mutt_dotlock, but it worked only once, and now I'm getting the error no matter what I try. All suggestions welcome. Bill * * -- E. William Horne William Warren Consulting 339-364-8487 ___ Discuss mailing list Discuss@blu.org http://lists.blu.org/mailman/listinfo/discuss
Re: [Discuss] Mutt showing Mailbox is read-only. error
On 8/2/2014 11:09 AM, Bill Horne wrote: habit: when I open my default mailbox, and try to delete an email, I get the error Mailbox is read-only.* This is probably the ownership and permissions on the spool directory (/var/mail). The ownership should be root:mail. Permissions at a minimum should be 2775 (u+rwx,g+rwxs,o+rx). Once these are set you should check the ownerships and permissions of the spool files. Ownership should be ${USER}:mail and permissions should be 660 (u+rw,g+rw,o-a). -- Rich P. ___ Discuss mailing list Discuss@blu.org http://lists.blu.org/mailman/listinfo/discuss
Re: [Discuss] Mutt showing Mailbox is read-only. error
On 8/2/2014 11:31 AM, Richard Pieri wrote: On 8/2/2014 11:09 AM, Bill Horne wrote: habit: when I open my default mailbox, and try to delete an email, I get the error Mailbox is read-only.* This is probably the ownership and permissions on the spool directory (/var/mail). The ownership should be root:mail. Permissions at a minimum should be 2775 (u+rwx,g+rwxs,o+rx). Once these are set you should check the ownerships and permissions of the spool files. Ownership should be ${USER}:mail and permissions should be 660 (u+rw,g+rw,o-a). I made the changes, and added the postfix user to the mail group. It works OK now. THANK YOU for your help! Bill P.S. Is there a list of Standard permissions for a new Ubuntu 14.04 LTS install? -- E. William Horne William Warren Consulting 339-364-8487 ___ Discuss mailing list Discuss@blu.org http://lists.blu.org/mailman/listinfo/discuss
Re: [Discuss] Mutt showing Mailbox is read-only. error
On 8/2/2014 12:20 PM, Bill Horne wrote: P.S. Is there a list of Standard permissions for a new Ubuntu 14.04 LTS install? I don't believe so, no. What I posted are the defaults for a stock Debian installation. I'm not familiar with Ubuntu's defaults other than that they didn't work on the one Ubuntu server that I have so I changed them. Ubuntu has something of a reputation for having non-working spool permissions so I'm not alone in this. -- Rich P. ___ Discuss mailing list Discuss@blu.org http://lists.blu.org/mailman/listinfo/discuss
[Discuss] contact info for OLPC/Sugarlabs related people in Boston area?
I'm trying to decruft and I have a (small) pile of XO-1 hardware that needs a new home. It seems that OLPC has moved their office to Miami and at the moment the server for the OLPC-Boston mailing list (and all of the OLPC mailing lists) is down. Does anyone have contact info for someone in the Boston metro areas who is still involved with Sugar development/OLPC (one laptop per child) activities? I'm hoping not to just trash the hardware. Bill Bogstad ___ Discuss mailing list Discuss@blu.org http://lists.blu.org/mailman/listinfo/discuss