MTA: Ultra Simple

Hey,
Let's begin by saying that mail servers are something I've never been able to wrap my head around, for no apparent reason. It just seems to be over my head, or something. However, I've found myself in a situation where I can not elude setting up such a server, even though the requirement is very simple: a bulletin board needs to send out notification and confirmation emails. Nobody is ever going to receive mail on that domain, and the only "person" ever going to send mail from it, is a PHP script.
In the past, I would have resorted to Google Apps to sort the mail sending, but the customer insists he wants his own server to handle it. And while he's probably just being stubborn, I'm not in the mood to argue over it, so I might as well take the chance to learn a few ropes on MTAs.
Let's head onto the questions, then. First, which MTA should I be using? I understand sendmail is a gargantuan monster that's anything but easy to tame. Let's cross that one off. I've heard about postfix and qmail, but I haven't done enough research (nor do I understand enough about MTA to actually assert their qualities) to decide between one of them. I'll probably go with a disabled shell account for the email thing, but I'm not sure I even need that, since I'm not going to receive mail.
Any hints, tips, tricks, and pointers will be very, very welcome, as I finally take on this peeve of mine. I'm of course googling, but all I can find are "postfix + <12 other packages for various services>" howto documents, that are way too complex and don't seem to fit my situation anyway. But maybe there's a page I've missed?
Thanks in advance!

+1 for Postfix.
I've put an uber-simple main.cf in the ArchServer postfix package that might be a good starting point for you
http://git.archserver.org/?p=server-ext … 09;hb=HEAD

Similar Messages

  • Ultra Simple WCF Interface implementation in Biztalk?

    I have a series of WCF services that I need to emulate in BizTalk defined using a pattern like this:
      [ServiceContract(Name = "AssignmentService", Namespace = "http://test.org/webservice")]
      public interface IAssignmentNotification
        [OperationContract(Action = "http://test.org/webservice/Assignment")]
        string Assignment(string assignmentXml);
    The strings (in and out) are well formed complex xml documents.  The calling system currently is implemented using this type of interface because there were issues getting well-formed NIEM compliant WCF or Soap documents (I'll save that for a different
    post later). 
    I have searched around, and I do not seem to be able to find any type of example showing how to receive a string, transform it into an Xml-based message (BTW, BizTalk does appear to consume the XML of the message fine to create an XSD that can be used for
    mapping); do a bunch of processing, and then turn around and generate an XmlDocument (again, BizTalk can generate an XSD matching the Xml needed here) and finally transforming it into a string.
    I have all of the moving parts working, exception for the pipelines to get the strings in/out in a way that conforms to the desired interface.
    Does anyone have any pointers or sample code they could share that does this?
    Thanks,
    John

    One of the way out is for you to create a service (pX). This service is what is exposed with your data contract (publish service as WCF).
    This service will then get the string (if you use assignmentXml as distinguished) then in the orchestration you'd get receivedMessage.assignmentXml as a string.
    You will then have a message type mXtyp (multi-part) in the orchestration where the message type is of the schema you expect to receive, it could be an XmlDocument also.
    Now, on receipt of the message, you will utilize a orchestration variable (varXmlDocument of type XmlDocument) to load the entire string as an XmlDocument (use varXmlDocument.LoadXML(receivedMessage.assignmentXml)) and assign it to a Message (mX) of the
    type mXtyp as mX.parameters = varXmlDocument [parameters is the name of the body part defined in multi-part message type (mXtyp).
    Then you can use Direct Bound ports and publish this. The orchestration which needs to process this message type can similarly use a direct bound port (two-way) to receive and process the message.
    The service orchestration (pX) will receive the response and using a similar assignment (reverse) create an XmlDocument and return the XmlDocument.OuterXML as part of its service response.
    Regards.
    NOTE: you can make pX a generic service where before publishing you can promote messageType on the message and use XmlDocument as the generic published message to direct bound ports. This way you can use the same endpoint to expose multiple service each
    of which can consume a specialized XML request/response.

  • Very simple cfselect question

    Hi,
    I have a really noob question; what is the easiest way to
    output the values of a cfselect dropdown to a cfoutput tag on the
    same page?
    I am only interested in puting the values of the dropdown
    into the cfoutput tag when the user selects on a dropdown item .
    Thanks for your time.

    Thanks for the quick reply!
    I think what i meant to say with the code i posted is that i
    am perfectly happy with validating the form on the server AND i
    have added a submit button to my form (its just not in the code i
    posted) and the form is "in fact" validating to my CF8 server.
    However where I am stuck is that I am not sure if there is still is
    tricky server behavors or other code that i need to add to the form
    or page itself.
    In the code i posted before i still only recieve the first
    output selection regardless if the submit button is pressed the
    value of "50" always appears/reappears.
    I am still new to CF and i like it a lot but it is a little
    puzzling that for such a ultra-simple task as what im stuck with i
    hope that i dont need to write reams and reams of code to do this.
    Thank you in advance.

  • Exporting library assets to frame 1 causes delay

    I'm fairly new to Actionscript 3, just trying to puzzle something out.
    I have several small movie clips saved in the library of myCS4 Flash.fla file, I want to make them available to dynamically add to the display list as children, based on the button clicks of the viewer. I can get it all to work fine via Symbol Properties > Linkage > Export for Actionscript.
    BUT - When the movie clips are set to "export for actionscript" from the  Library, playback seems to hang on frame 1 until all of these  exported assets have downloaded. The big problem is that I have an ultra-simple but totally custom preloader/progress animation coded in a loop in the second and third frames, which kicks out to frame 4 and continues playback as soon as the download is complete.
    Because of this, the preloader has essentially become useless - because all that can be seen is several seconds of empty stage, until the vast majority of the bulky assets have downloaded. Then the preloader flashes onstage for just an instant, and disappears because the content is already up.
    So, my questions are:
    A)  Is there a SIMPLE alternate method to load these library assets in such a way that it doesn't cause this major lag on frame 1?
    B)  Failing that, I suspect I may have to retool my preloader to run as an ENTER_FRAME event in frame 1.  Is this worth the effort (can this potentially resolve the lag issue and allow for a meaningful preload progress animation, despite the lag from the asset export?)
    Any advice, thoughts, ideas (sample code?) would be greatly appreciated!!
    Thanks in advance,
    </a>
    **Edit follows**
    OK, so after a little more research, I have basically answered this question for myself. I'm updating the post for the benefit of others who may find themselves in my shoes somewhere down the road.
    The solution (as far as I can see) is to pretty much just avoid using the "Export for Actionscript" option for exporting assets to the timeline, as much as possible. Maybe it's fine for a few small assets, but not the best choice for large stuff, which in my case was the lions' share of the content!!
    Or at least don't use the default setting of exporting to frame one!!  This will likely foul up ANY preloader, because essentially Flash player will not display any of the content on frame one until ALL of the content on that frame has fully downloaded - You'll be stuck staring at an empty stage for ages, then when the preloader finally does show up on the stage and run, it will zip by in an instant while (probably) doing its job properly, but it's really only updating on the load progress of the balance of the SWF file.
    The info I found suggested one easy method of making the assets available to Actionscript -- simply just place all of the required library assets into some unseen frame in the timeline, shortly AFTER your preloader runs.  Then Flash Player will load them after the preloader has done its thing, and they will be available to be accessed by Actionscript later in the timeline when you really need them.
    Also FYI -- I also tried changing the export settings to have Flash export the assets in question in frame four instead of frame one, with the unfortunate and unexpected result that my published SWF began skipping playback directly to frame four, which also effectively killed my preloader (which was running in frames two and three.) This glitch remained, even after reverting the export setting back to export the assets in frame one!!  It seems like my .FLA file was irreversibly altered (contaminated??) by changing the export frame setting?!?  Yikes!!
    Luckily I had an earlier version saved under a different file name, it was relatively easy to go back to that version and bring it up to date.
    Anyway - that's all for now. Hope this info can help someone else....
    </a>

    See edit at bottom of original post....

  • Setting up Perl under Apache

    I'm very disappointed with Apple over the very poor documentation and support for what is potentially an extremely valuable asset in the Mac OSX tool box i.e. being able to test Perl scripts locally using the Apache software included under OSX.
    Because it's taken me 2 days to wade through the discussions here and find resources online I want to help others avoid my delays and post what I found. I would also like to comment that the unix community active on this list though so very helpful in many ways could resist scorning those who are entirely unfamiliar with terminal and the command line interface and try to condescend to explain in layman's terms what is essentially not that complex but is so shrouded in jargon, shorthand and arcana that it seems almost deliberately difficult to penetrate. I would ask Apple to please just post a simple 'how to' or if they see fit include this email in their FAQ's.
    Thank you to the many who have posted on this subject on this list and I apologize if I have used your suggestions without personal credit. I am with this document merely giving back something of what I have taken out of this useful resource. Please feel free to offer amendments to any obvious mistakes or misunderstandings I am a novice at Unix attempting to help other novices because (Ibelieve) I still speak the same language.
    This method is for starting Perl under Tiger OS 10.4x (may work for Panther or earlier I haven't tested it) on a desktop machine, not a server.
    To start Apache under OSX
    1) To turn on Apache just go to System prefs and turn on 'personal web sharing' under the 'sharing' control panel. Note the IP address that appears under the 'Select a service...' window as this is the IP address of your local web address or 'yourlocalhostaddress' (referenced below). This is what you type into the browser to view your pages locally.
    2) It seems intuitive to place your web site in the user/yourusername/sites folder on your hard drive. While this is acceptable for basic web sites it seems to make configuration harder for Perl. I could not access a cgi-bin nor find documentation that satisfactorily informed me how to access a cgi-bin created in this location. That doesn't mean it's not possible just that I don't know how to do it.
    Apple have created another folder with a pre-configured cgi folder at the following location;
    yourharddrive/library/WebServer
    Place your website in the 'Documents' folder and your Perl scripts in the 'CGI_Executables' folder. It's unnecessarily confusing to me that Apple have essentially renamed the cgi-bin to 'CGI_Executables' and the 'html' folder to 'documents' as they would be found under the Apache installation that I'm familiar with but that seems to be what's happened here.
    To start Perl support in Apache under OSX
    3) If you dont already have one it's useful to have an ultra simple Perl script on hand to test whether your configuration is working. More complex script such as formmail.pl may have additional settings that are confusing as to whether it's the file or the configuration that is causing a script error. To create a simple script copy and paste the following code;
    #!/usr/bin/perl
    print "Content-type: text/html\r\n\r\n";
    print "Hello, World.";
    into a new, empty document in a text editor and save it as 'first.pl' in your 'CGI_Executables' folder. You can open it in Safari using the following address;
    http://yourlocalhostaddress/cgi-bin/first.pl
    4) If you test your script now a call to the Perl script will merely open the page with the script as text and will not run it. This is because Apple supplies their copy of Apache with Perl disabled, it's necessary to edit a file called 'httpd.conf' in order to turn Perl on. The recommended way to turn this file on is using the terminal program but the file can also be located through the mac OS although it is partially hidden, it can be edited in a text editor that is suitable for coding such as BBEdit.
    The best online documentation I found about how to edit the httpd.conf file using terminal is here;
    http://www.macdevcenter.com/pub/a/mac/2001/12/14/apache_two.html?page=1
    However I'm not sure that he is accurate (though I hesitate to disagree with the expert) my experience was significantly different see below(*).
    Terminal has useful testing features but the command line is obscure and daunting to the novice. In addition UNIX programmers seem to delight in scaring away the cautious with silly, portentous warnings about privacy etc. This document is very sensitive to the way it's edited, however your computer will not blow up if you get it wrong and there is a back-up default version stored in the same folder so if you do screw up you can restore the defaults and start again.
    If you wish to do it without going through the terminal the 'httpd.conf' file is located here;
    /private/etc/httpd/httpd.conf
    where private is an invisible folder so you cant navigate to it directly via the Mac OS. However if you copy and paste the above address into Safari's address bar the folder window will come up revealing the document (this is an undocumented feature and I discovered it by accident so use at your own risk). Alternatively you can navigate to it using an FTP program such as Transmit when you have 'show hidden files' turned on in the preferences. Transmit is a very useful tool because it also allows you to view and change the permissions (or CHMOD) of the files you view in the same manner as you would on a remote server. Something which you cannot do using the 'Get Info' on the Mac OS
    You'll notice that there is an httpd.conf and an httpd.conf.default file. The latter is your backup so dont be overly scared of editing the first file, proceed with caution but not with trembling.
    Once you have the program open in BBEdit (or your editor of choice) uncomment the following lines by deleting the # symbol;
    #LoadModule perl_module libexec/httpd/libperl.so
    #AddModule mod_perl.c
    The quickest way to find these lines is to do a find on 'Perl' (something you cant do in Terminal). Dont change anything else just save and close, you will be required to enter your administrator password at this point.
    (*)Please note;
    Kevin Hemenway in the macdevcenter.com article says to uncomment the following lines;
    #LoadModule cgi_module libexec/httpd/mod_cgi.so
    #AddModule mod_cgi.c
    And makes no mention of the lines ending in perl rather than CGI. His article is from 12/14/2001 so it may be out of date. In my httpd.conf file the lines ending 'cgi' were already uncommented but the lines ending 'perl' were commented out. I uncommented the lines ending 'perl' and now in my version both (cgi and perl) are uncommented and active. There are security implications to uncommenting any lines so I may have opened a security loophole that I'm not aware of however until I uncommented the 'perl' lines my scripts did not work. I would be grateful for an explanation of the implications from any Unix expert reading this.
    5) The last thing you need to do is restart Apache so that it can load the new config file. To do this stop web sharing in the preferences pane and then restart it.
    If you test your simple Perl script 'first.pl' now it should load and show the text "Hello World" in a browser window.
    6) if you wish to load a more complex script and find that they will still not work, at least you know that Perl is working. You can check the error logs by opening the terminal and at the prompt (yourusername$) type;
    tail /var/log/httpd/error_log
    This enables you to trace the whether a permissions, configuration or other error has occurred.
    WARNING;
    The above is a distillation of my frustrating experience over the last 2 days, it details how I finally got it to work. With everything in scripting I find that I repeat the same method multiple times, convinced each time that I have it right and all of a sudden it works where it didn't work before. This always leaves me unsure that I may have inadvertently done some thing right (as logically I was obviously inadvertently doing something wrong before) that is not documented here. I offer this method as the product of my experience, because I hope it is helpful and because I have the confidence that there is a way to back out of it using the default config file. Despite the above use at your own risk.
    G5 Dual 2.5Ghz + Pbook G4 867Mhz + 15GB iPod   Mac OS X (10.4.3)  

    That sounds like a very good useful tip. I would hold on to it in your own computer's repository as well and post sections of it whenever you see someone needing help with it until you are able to add it to the contributions section of the User Tip forum here:
    http://discussions.apple.com/category.jspa?categoryID=103

  • How can I play music from the icloud using apple tv (2) controled by remote app  on iphone so the TV is switched off but stereo on

    I was blown away when I started using the new remote app with Apple tv to play music from my iMac on my best music speakers in the living room!!!  However there are still 2 things required to make things ultra simple:
    1 Not to have my iMac switched on to have to stream music to the Apple tv (I've now started using iTunes Match which has almost fixed this one)
    2 Not have to have my TV switched on to control my amplifier through the apple tv.  (I can do this using the remote app on the iphone but only for music streaming from my iMac it wont work for music I have in iCloud, apart from music now playing.  I can't search/browse any other music)
    If this is fixed it will be absolutely awesome!!! As my apple tv will replace all the HIFI separates apart form my amplifier and I can control what music my amp plays using the best user interface in the world my iphone/ipad
    Dylan

    Hi, I don't have this bug. I can play music through my apple tv with the TV switched off and use the apple remote app to control the apple tv.
    My problem involves:
    icloud music ----> broadband router ----> apple tv ---->music amplifier.  Using the remote app on the iphone to control whats playing.  This almost works but in the remote app you can only see the currently playing song, you can't search/browse your music in the icloud (itunes match).
    What does work is:
    iMac-itunes music ----> apple tv ---->music amplifier controlled by the remote app in the iphone with teh tv off.  I can view my itunes library with the tv off using the iphone remote app. I would like to do this but using my music in iCloud. That would be awesome!!!

  • Adding a jar to the classpath of an executable jar (mixing -jar and -cp)

    Hello,
    frankly I hesitated over posting this to "New to Java"; my apologies (but also, eternal gratefulness) if there is an ultra-simple answer I have overlooked...
    I integrate a black-box app (I'm not supposed to have the source) that comes packaged as an executable jar (with a Manifest.MF that specifies the main class and a bunch of dependent jars), along with a few dependent jars and a startup script. Long story short, the application code supports adding jars in the classpath, but I can't find a painless way to add a jar in its "classpath".
    The app's "vendor" (another department of my customer company) has a slow turnaround on support requests, so while waiting for their suggestion as to how exactly to integrate custom jars, I'm trying to find a solution at the pure Java level.
    The startup script features a "just run the jar" launch line:
    java -jar startup.jarI tried tweaking this line to add a custom jar in the classpath
    java -cp mycustomclasses.jar -jar startup.jarBut that didn't seem to work ( NoClassDefFound at the point where the extension class is supposed to be loaded).
    I tried various combination of order, -cp/-classpath, using the CLASSPATH environment variable,... and eventually gave up and devised a manual launch line, which obviously worked:
    java -cp startup.jar;dependency1.jar;dependency2.jar;mycustomclasses.jar fully.qualified.name.of.StartupClassI resent this approach though, which not only makes me have to know the main class of the app, but also forces me to specify all the dependencies explicitly (the whole content of the Manifest's class-path entry).
    I'm surprised there isn't another approach: really, can't I mix -jar and -cp options?
    - [url http://download.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html]This document (apparently a bible on the CLASSPATH), pointed out by a repited forum member recently, does not document the -jar option.
    - the [url http://download.oracle.com/javase/tutorial/deployment/jar/run.html]Java tutorial describes how to use the -jar option, but does not mention how it could play along with -cp
    Thanks in advance, and best regards,
    J.
    Edited by: jduprez on Dec 7, 2010 11:35 PM
    Ahem, the "Java application launcher" page bundled with the JDK doc (http://download.oracle.com/javase/6/docs/technotes/tools/windows/java.html) specifies that +When you use [the -jar] option, the JAR file is the source of all user classes, and other user class path settings are ignored+
    So this behavior is deliberate indeed... my chances diminish to find a way around other than specifying the full classpath and main class...

    I would have thought that the main-class attribute of the JAR you name in the -jar option is the one that is executed.Then I still have the burden of copying that from the initial startup.jar's manifest. Slightly less annoying than copying the whole Class-path entry, but it's an impediment to integrating it as a "black-box".
    The 'cascading' behavior is implicit in the specification
    I know at least one regular in addition to me that would issue some irony about putting those terms together :o)
    Anyway, thank you for confirming the original issue, and merci beaucoup for your handy "wrapper" trick.
    I'll revisit the post markers once I've actually tried it.
    Best regards,
    Jérôme

  • Is there a bug with stateful WebServices in JDeveloper 10.1.3.1 ?

    Hi
    I created an ultra simple JAX-RPC Webservice from the following class using the JDeveloper WebService Wizard:
    class myWebService
      private static int SessionId;
      public myWebService() {SessionId++;}
      public int getSessionID() {return SessionId;}
    } I declared this WebService as Stateful with Session Scope. The Timeout is 600s;
    Running this WebService in JDeveloper 10.1.3 (using the generated HTML-Testinterface) I see that "getSessionID" returns the same ID on each invocation. Obviously state is managed correctly.
    However, running the same WebService in JDeveloper 10.1.3.1 I see that "getSessionID" returns a different ID on each invocation. Obviously state has been lost.
    Is this a bug in JDeveloper?
    Thanks for your help.
    Frank Brandstetter

    Is anyone using stateful webservices with JDeveloper 10.1.3.1 ?

  • XML Namespace Question

    Hi folks,
    I'm new to XML, and have been trying to validate an XML document against a schema using an online validator.
    I have given ultra-simple examples of my schema and document below:
    Schema
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com"
    xmlns="http://www.example.com">
         <xs:element name="letter">
                   <xs:complexType>
                        <xs:sequence>
                             <xs:element name="to" type="xs:string"/>
                             <xs:element name="from" type="xs:string"/>
                        </xs:sequence>
                   </xs:complexType>
         </xs:element>
    </xs:schema>
    Document
    <?xml version='1.0' ?>
    <letter xmlns="http://www.example.com">
              <to>You</to>
              <from>Me</from>
    </letter>When I try to validate the document against this schema I get the following errors:
    Validation error:
    Error at (3,4): The element 'http://www.example.com:letter' has invalid child element 'http://www.example.com:to'. Expected 'to'.
    Error at (3,4): The 'http://www.example.com:to' element is not declared. An error occurred at , (3, 4).<to>You</to>
    Error at (4,4): The 'http://www.example.com:from' element is not declared. An error occurred at , (4, 4).<from>Me</from> </letter>
    I must be doing something wrong when declaring namespaces, but I can't see what. Can anyone point me in the right direction, please?
    Thanks,
    s.

    This is what I have for your code:
    import java.io.IOException;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.NamedNodeMap;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.helpers.DefaultHandler;
    public class JAXPValidator
         public void validateXML(String XmlDocumentUrl) throws Exception
              System.setProperty( "javax.xml.parsers.DocumentBuilderFactory",
                                       "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setNamespaceAware(true);
              factory.setValidating(true);
              factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage",
                                        "http://www.w3.org/2001/XMLSchema");
              DocumentBuilder builder = factory.newDocumentBuilder();
              Validator handler = new Validator();
              builder.setErrorHandler(handler);
              Document doc = builder.parse(XmlDocumentUrl);
              if( handler.hasValidationError() )
                   throw( handler.getParseException() );
    // these simple loops assume that the xml has already been validated!
              NodeList letters = doc.getElementsByTagName( "letter" );
              for( int i = 0; i < letters.getLength(); i++ )
                   NodeList letterChildren = letters.item( i ).getChildNodes();
                   for( int j = 0; j < letterChildren.getLength(); j++ )
                        Node nextNode = letterChildren.item(j);
                        if( nextNode.getNodeType() == Node.ELEMENT_NODE )
                             Node nextNodeValue = nextNode.getFirstChild();
                             System.out.println( "nextNode.getLocalName() is " + nextNode.getLocalName() );
                             System.out.println( "nextNodeValue.getNodeValue() is " + nextNodeValue.getNodeValue() );
         private class Validator extends DefaultHandler
              private boolean validationError = false;
              private SAXParseException saxParseException = null;
              public boolean hasValidationError()
                   return( validationError );
              public Exception getParseException()
                   return( saxParseException );
              public void error(SAXParseException exception) throws SAXException
                   validationError = true;
                   saxParseException = exception;
              public void fatalError(SAXParseException exception) throws SAXException
                   validationError = true;
                   saxParseException = exception;
              public void warning(SAXParseException exception) throws SAXException
                   validationError = true;
                   saxParseException = exception;
         public static void main(String[] argv)
              JAXPValidator validator = new JAXPValidator();
              try
                   validator.validateXML(argv[0]);
              catch( Exception e )
                   e.printStackTrace( System.err );
    }This was compiled with:
    javac -classpath .;..\xerces-2_7_0\xercesImpl.jar;..\xerces-2_7_0\xml-apis.jar JAXPValidator.javaand run with
    java -classpath .;..\xerces-2_7_0\xercesImpl.jar;..\xerces-2_7_0\xml-apis.jar JAXPValidator sunforum.xmlIt assumes that the XML and XSD that I posted before are in the same directory as the program is being run from.

  • Whitelist bug or a i just stupid

    o.k. i created a whitelist to add object embedding support...when i did, restarted the webservice and now the blog and wikis are disabled.anyone ever have this problem

    Doug,
    I have the same problem. I changed the owner & group permissions on the whitelist.plist file to _teamssserver. Here's the content - ultra simple - just trying to add an allowance for any style attribute in all tags:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.
    com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>tags</key>
    <dict>
    <key>all</key>
    <array>
    <string>style</string>
    </array>
    </dict>
    </dict>
    </plist>
    Here's the error (key part):
    File "/usr/share/wikid/lib/python/apple_wlt/ContentEntry.py", line 29, in <module>
    Nov 14 15:06:19 wiki com.apple.wikid[87990]: import ContentFilters
    Nov 14 15:06:19 wiki com.apple.wikid[87990]: File "/usr/share/wikid/lib/python/apple_wlt/ContentFilters.py", line 21, in <module>
    Nov 14 15:06:19 wiki com.apple.wikid[87990]: WhitelistContentFilter.WhitelistContentFilter(supportPath + 'whitelist.plist'),
    Nov 14 15:06:19 wiki com.apple.wikid[87990]: File "/usr/share/wikid/lib/python/apple_wlt/WhitelistContentFilter.py", line 125, in _init_
    Nov 14 15:06:19 wiki com.apple.wikid[87990]: for elm in userPlist['styles']:
    Nov 14 15:06:19 wiki com.apple.wikid[87990]: exceptions.KeyError: 'styles'
    Seems a lot of people are struggling with this issue. The documentation is a bit thin on the all feature. Do I have to have the other elements (protocol, styles) present also? I'm tempted to just change the python code, but would rather use the plist as intended.
    Thanks,
    RyanR>

  • Jakarta 'Input' taglib?

    Is anyone familiar with the Jakarta "Input" JSP tag library (http://jakarta.apache.org/taglibs/doc/input-doc/intro.html) ? I could really use some example code as their documentation is a bit lacking and I'm stumped.
    An example is that they indicate an optional 'bean' attribute for the <input:form> tag which allows one to provide a bean with default values for all of the nested form elements, but they don't give any info on how that bean should be structured. So for instance, if I have a form tag with a nested select tag, which in turn has several nested option tags, how do I structure that heirarchy?
    This and other similar ambiguities could be easily figured out with some real code examples beyond the one ultra-simple .jsp file they provide. Any pointers on where to look? I've googled it extensively and come up empty.
    Thanks in advance,
    -Rich

    I have to use an older jdk version since jdk1.4 is still beta. Any solutions?
    By the way, when is the final release of jdk1.4? Perhaps I can convince my boss...
    Greets
    Puce

  • Anyone help ol' man with Cocoa project, please?

    Hi all,
    I recently volunteered to help transcribe Birth, Marriage and Death (BMD) records dating back to 1837 for FreeBMD -- a registered charity -- to help folks trace their family trees online. Unfortunately, while the Mac software has some nifty features, it's still really s-l-o-o-w and tedious to use and I reckon the speed and accuracy could be increased 3x using a slightly different approach.
    I was reasonably okay with 'C' in the old days but never quite managed to get my head around OOP yet (probably due to my age). The app I have in mind consists of an ultra-simple text editor (a la Apple's 15 minute example project) with combined bare-bones image/PDF viewer plus a few extra bells and whistles, and I've already designed the interface -- about as far as I can get for now
    I see a lot of really knowledgeable folks replying to postings in this discussion group, many with huge numbers of posts under their belts, and I reckon this would be considered a fairly 'trivial' app that could be knocked out during a long coffee break for anyone experienced in Cocoa programming.
    If you feel you'd like to help with this charitable, not-for-profit project, please email me at "ojisanATadamDOTcomDOTau" and I'll send you what I've got, together with some good sample code that clearly addresses most of the problems.
    Your input will help me get a handle on what eludes me about OOP (I learn really well by example), make life easier for all the Mac volunteer transcribers out there, help MILLIONS of hobbyists trace their ancestors quicker (genealogy is the #1 hobby in the US, and probably also in Australia, UK, and Canada etc.), and help level the playing field with Windows (their transcription solution is currently better than ours).
    Kind regards
    Ernie

    Bob Lang1 wrote:
    Oooh! You're such a comedian, etresoft
    I aim to please.
    As for .NET, the major language for .NET development is C#, and this language is clearly based on Java with a few minor syntax changes. It uses exactly the same object model as Java, and even the underlying technology is similar to the Java Virtual Machine.
    I'm not attempting to convince you, just set the record straight.
    As long as we are setting the record straight, we should clarify a couple of things. .NET is the "virtual machine" part. You can use C#, J#, VB, or even a slightly twisted variant of C++ with .NET. For those of us who spent a few formative years swearing at MFC, .NET is a significant improvement.
    I haven't done much with .NET but I find it to be very much like Cocoa, both in the functionality it provides and the slightly twisted way you have to use it. In Cocoa, you have to use Objective-C or Objective-C++. In .NET, you have to use Microsoft's own slightly strange variants. If you can understand all the brackets, receivers, and messages in Cocoa, you shouldn't have any trouble with all the carets in .NET C++.
    You're quite right, it's obviously much less effort to write a program in Cocoa and then re-write it for .NET, than it is it to write it in Java in the first place and run it unchanged on three different platforms. Java is so portable that a Java program written on one platform doesn't even have to be re-compiled to run on another. If you write a program using Cocoa then you limit your market just to Macs - very much a minority platform compared to Windows. Write your program in Java and your market is literally unlimited.
    Everything you've said here is correct. Still, every Java program I have ever seen is clearly a "Java" program and usually cannot achieve the same level of integration with the OS that either .NET or Cocoa gives you by default. Java programmers still have to make an effort to ensure that their programs run and run well on platforms they didn't develop it on.

  • Is the ABAP dispatcher a workprocess??

    Ultra simple question.
    I was reading the SAPTEC guide and the definition was a little ambigious.
    To put the question anotherway, to be considered a workprocess, does a process need to have a database interface?
    Regards,
    Peter

    Hi,
    A workprocess is an os process which accomplishes some useful work.
    A useful work may be :
    execute an abap  dialog step from a transaction for a user : dialog workprocess
    execute an abap  dialog step from a batch job : batch work process
    execute an abap dialog step from an asyncronous update : UPD or UP2 workprocess
    execute an abap dialog step from creating a spool entry : spool workprocess
    execute an abap dialog step from an enqueue query : enqueue workprocess
    The dispatcher process manages a queue and dispatches the various queries to the different workprocess available to run the required type of task.
    This is a technical usage and so not a work in SAP speak.
    For your specific question, I think tht you are right.
    Regards,
    Olivier

  • How do I delete the jpeg from raw+jpeg imported images?

    Hi,
    Back in the day, I shot lots of images using raw+jpeg and imported them into Lightroom.  Now I realize those jpegs add no value and I'd like to recover the disk space that they're collectively occupying.
    Is there a good way to:
    1. Identify all images in a catalog which have raw+jpeg?
    2. Remove just the jpeg for these images?
    Thanks!

    $$PhotoHobby wrote:
    I'm very hesistant to take the chance on any 3rd party script.
    Just so ya know, what the deletion feature in RawPlusJpeg does is ultra simple:
    1. Identifies extraneous jpeg files.
    2. Presents them for you to review.
    3. Deletes the extraneous jpeg files, if you approve. (puts them in the recycle bin if possible).
    It does nothing to the database nor anything else.
    You sync folders with 'Treat JPEG files next to raw files separately' afterward, which is what sets the database right.
    The only potential for trouble is the criteria for determining which jpegs are extraneous.
    It has no direct access to the database, so what it does is check for jpegs with same base name as raw (which *must* be present in catalog, and on disk), that aren't in the catalog, which includes the jpegs associated with RAW+JPEG (imported as a unit), *and* any jpegs that were imported separately, but subsequently removed from the catalog, or had never been imported.
    So, what it does will be the perfect thing to do, *if* you first synchronize folders (with 'Treat JPEG files next to raw files separately' checked) to pull any jpegs in to the catalog that were previously imported separately, but may have been inadvertently removed from the catalog (or had never been imported), before invoking the delete feature of the plugin.
    Note: You must do that for any manual procedure too, or you will have the same problem, except in the manual case, you won't have the benefit of the plugin checking your work, and presenting the files to be deleted, before you commit.
    It's your call, obviously, and to save Geoff the Kiwi from pointing this out: the plugin comes with no guarantee, warranty, or any other kind of tea.
    Consider backing up catalog and photo files before doing this maintenance, whether manual, or plugin-assisted.
    In my opinion, the plugin-assisted method is much safer than the manual method, which is the only reason it was written, *not* to save steps, although it does that too. For example, you can not, with the plugin, delete any jpegs that do not have a corresponding RAW in the catalog and on disk, period. - unless there is a bug of course, but there probably isn't , at least not one that would change the aforementioned assertion... - it wouldn't take much of a bug to cause it to barf, but it would take a big bug to cause it to delete files that weren't on the list, etc...
    Seriously, I don't think you have to wait for Adobe on this one. I wouldn't (I didn't - my catalog is all clean now!...).
    PS - there is *very* little recorded in the database about the jpeg sidecar - it's existence upon import (when "as a unit") - that's about it. Most of the funny business about updating that we were fumbling with above, stems from the software (and the person at the keyboard), *not* the database. Syncing folders with 'Treat JPEG files next to raw files separately' checked, once the jpeg sidecars have been cleaned up, *will* set the database straight!
    Cheers,
    Rob.

  • Only one pushdown per DF in BODI 11.7?

    We have a pretty complex ETL process with dozens of DFs that are liberally sprinkled with data_transfer transforms, added by the original developers with the intent of getting SQL to push down to the SQL Server 2005 where the data is stored. According to "display optimized SQL", it appears that most of them are not pushing down. In fact, I built a very simple DF based on sys.objects and sys.columns with one-column query transforms going to data_transfers then to another query transform that combines the two forks by selecting one of the columns that is then pushed to the target table. If I delete either one of the forks the other pushes down with an INSERT a SELECT b FROM c format, but when I have both forks in the DF, only one or the other will push down.
    It seems like there is some kind of configuration parameter that is limiting pushdown functionality but I can't figure out what it is. I've read up on things that prevent push-downs, messed with different configs trying to see if anything made a difference, and finally created an ultra-simple DF to demonstrate the problem. I'm out of ideas, and this is killing our performance- our big ETL process is running in 10 hours every day, but if we fixed this it might run in a third of the time.
    Thanks for your help.

    Odd. I have no problems viewing all the tracks on an album, whether I'm viewing by album or by artist. And I can't seem to force a situation where I get only a subset and a "next" button. What Mac model are you running, and what screen resolution?
    Regards.

Maybe you are looking for