Lua require statement & penlight

Hello community,
I have written direct with lua some code and here I'm using the penlight library with several classes.
stevedonovan/Penlight · GitHub
This library is based in a Sub Directory structure and can be loaded with code like
require ('pl.pretty)     OR
local pretty = require ('pl.pretty');
Usage:
pretty.dump(list);
The "pl" is like a package and the lua script is loaded from the Sub Directory.
If I use this library in my lightroom plugin I will get some error
"error loading toolkit script could not load"
In the PDF from SDK there are some informations, that "require" is not the original lua implementation. This is a overriden function.
Has somebody any idea, how to use the penlight library. How can I load this library.
Thanks

I don't recall anyone posting here about Penlight.  Over the years, people have alluded to the difficulties of using Lua libraries not written for the Lightroom environment.
So I think you'll have to debug this yourself. I suggest starting with the section "Using built-in Lua features" on page 19 of the Lightroom SDK 5 Programmer's Guide, which lists the restrictions LR places on its use of Lua 5.1.4.  (It appears that Penlight claims to support 5.1, but who knows.)
If what you want primarily is pretty printing of Lua data structures, you could use my Debugging Toolkit for Lightroom SDK.  The toolkit is much more limited in scope than Penlight, but it's implemented specifically for LR.

Similar Messages

  • Scripting error changing field required state

    I need to update all fields in a document to be not required. I read the value but cannot set it. I get the following error in the debugger.
    NotAllowedError: Security settings prevent access to this property or method.
    Field.required:10:click undefined:Exec
    According to the documentation, this should be easy to do.
    required
    Sets or gets the required characteristic of a field. When true, the fields value must be nonnull when the user clicks a submit button that causes the value of the field to be posted. If the field value is null, the user receives a warning message and the submit does not
    occur.
    Type: Boolean Access: R/W Fields: all except button.
    Example
    Make "myField" into a required field.
    var f = this.getField("myField");
    f.required = true;
    I am not sure what this means or how to correct. Any help would be greatly appreciated. My code is below.
    var fieldCount = event.target.numFields;
    for ( var i = 0; i < fieldCount; i++)
    var fieldName = event.target.getNthFieldName(i);
    app.alert(fieldName);
    var field = event.target.getField(fieldName);
    if(field.type != "button" &&
    field.type != "checkbox")
    app.alert(field.required);
    field.required = false;

    If you are designing your form in Designer and not Acrobat then you shouldn't be trying to change the property on the AcroForm object (ie: the fields you get from using event.target.getField()) but rather on the XFA object. Here is an example copied from the XML Form Object Model Reference that changes all fields to read only. You can modify this to achieve what you want. In your case you'll want to set the mandatory property to "disabled".
    // Get the field containers from each page.
    for (var i = 0; i < xfa.host.numPages; i++) {
    var oFields = xfa.layout.pageContent(i, "field");
    var nodesLength = oFields.length;
    // Set the access type.
    for (var j = 0; j < nodesLength; j++) {
    var oItem = oFields.item(j);
    if (oItem != this) {
    oItem.access = "readOnly";
    Chris
    Adobe Enterprise Developer Support

  • Problem maintaining required state of selectOne component

    Hi,
    I have a set of components for which input is required, but the user can choose not to provide input by checking a checkbox.
    The problem is if I select to skip input and then hit next, then back, then next again the selectOne component appears to have forgotten that it is not required. However, the inputText field behaves as desired.
    Any ideas?
    // testRequired.jsp
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Test Required</title>
    <script type="text/javascript" language="JavaScript">
    function disableFieldById(fieldName) {
         if (document.getElementById(fieldName) == null) return;
        document.getElementById(fieldName).disabled = true;
        document.getElementById(fieldName).style.background = "#D5D2CB";
        document.getElementById(fieldName).value = "";
    function enableFieldById(fieldName) {
         if (document.getElementById(fieldName) == null) return;
        document.getElementById(fieldName).disabled = false;
        document.getElementById(fieldName).style.background = "#FFFFFF";
        </script>
    </head>
    <body onLoad="processPage();">
    <script type="text/javascript" language="JavaScript">
    function processPage() {
         updateFields();
    function updateFields() {
        if (document.getElementById("testRequiredForm:textOK").checked) {
            disableFieldById("testRequiredForm:testText");
            disableFieldById("testRequiredForm:testSelect");
        } else {      
            enableFieldById("testRequiredForm:testText");
            enableFieldById("testRequiredForm:testSelect");
    </script>
    <f:view>
         <h:form id="testRequiredForm">
              <h:panelGrid id="grid" columns="2">
                   <h:selectBooleanCheckbox id="textOK" value="#{testBean.ok}"
                        immediate="true" onclick="updateFields();"
                        binding="#{testUI.booleanSelect}"
                        valueChangeListener="#{testUI.statusChanged}">
                   </h:selectBooleanCheckbox>
                   <h:outputText value="Skip input" />
                   <h:inputText id="testText" required="true" value="#{testBean.text}"
                        binding="#{testUI.textInput}" />
                   <h:message for="testText" />
                   <h:selectOneMenu id="testSelect" required="true"
                        value="#{testBean.select}"
                        binding="#{testUI.selectInput}">
                        <f:selectItem itemValue="" itemLabel="" />
                        <f:selectItem itemValue="A" itemLabel="First" />
                        <f:selectItem itemValue="B" itemLabel="Second" />
                   </h:selectOneMenu>
                   <h:message for="testSelect" />
              </h:panelGrid>
              <f:verbatim>
                   <br>
                   <br>
              </f:verbatim>
              <h:commandButton type="submit" value="next" action="next" />
         </h:form>
    </f:view>
    </body>
    </html>
    // testRequiredNext.jsp
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Test Required Next</title>
    </head>
    <body>
    <f:view>
         <f:verbatim>
              Second page.
         </f:verbatim>
         <h:form>
         <h:commandButton type="submit" value="back" action="back" />
         </h:form>
    </f:view>
    </body>
    </html>
    // beans
    // TestBean
    public class TestBean {
        private boolean ok;
        private String text;
        private String select;
        public boolean isOk() {
            return ok;
        public void setOk(boolean ok) {
            this.ok = ok;
        public String getText() {
            return text;
        public void setText(String text) {
            this.text = text;
        public String getSelect() {
            return select;
        public void setSelect(String select) {
            this.select = select;
    // TestUI
    public class TestUI {
        private UISelectBoolean booleanSelect;
        private UIInput textInput;
        private UISelectOne selectInput;
        private boolean status;
        public void statusChanged(ValueChangeEvent event) {
            status = ((Boolean) event.getNewValue()).booleanValue();
            setRequired();
            if (isStatus()) {
                setComponentValues();
             * Update the checkbox manually as we're skipping the Update Model stage
             * (see FacesContext.getCurrentInstance().renderResponse(); below).
            booleanSelect.setValue(event.getNewValue());
        protected void setComponentValues() {
            textInput.setValue("");
            textInput.setSubmittedValue(null);
            selectInput.setValue("");
            selectInput.setSubmittedValue(null);
        protected void setRequired() {
            textInput.setRequired(!isStatus());
            selectInput.setRequired(!isStatus());
        public UISelectBoolean getBooleanSelect() {
            return booleanSelect;
        public void setBooleanSelect(UISelectBoolean booleanSelect) {
            this.booleanSelect = booleanSelect;
        public UIInput getTextInput() {
            return textInput;
        public void setTextInput(UIInput textInput) {
            this.textInput = textInput;
        public boolean isStatus() {
            return status;
        public void setStatus(boolean status) {
            this.status = status;
        public UISelectOne getSelectInput() {
            return selectInput;
        public void setSelectInput(UISelectOne selectInput) {
            this.selectInput = selectInput;
    }

    Actually, my JavaScript was obscruing the problem. The problem occurs for any type of UI component, not just selectOne's.
    Why won't my component remember its required attribute that I set?
    When you select "Skip input", hit next, then back, then next again it thinks the field is required again.
    Here is a simpler example:
    // testRequired.jsp
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Test Required</title>
    </head>
    <body>
    <f:view>
         <h:form id="testRequiredForm">
              <h:panelGrid id="grid" columns="2">
                   <h:selectBooleanCheckbox id="textOK" value="#{testBean.ok}"
                        immediate="true"
                        binding="#{testUI.booleanSelect}"
                        valueChangeListener="#{testUI.statusChanged}">
                   </h:selectBooleanCheckbox>
                   <h:outputText value="Skip input" />
                   <h:inputText id="testText" value="#{testBean.text}"
                        binding="#{testUI.textInput}" />
                   <h:message for="testText" />
              </h:panelGrid>
              <f:verbatim>
                   <br>
                   <br>
              </f:verbatim>
              <h:commandButton type="submit" value="next" action="next" />
         </h:form>
    </f:view>
    </body>
    </html>
    // testRequiredNext.jsp
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Test Required Next</title>
    </head>
    <body>
    <f:view>
         <f:verbatim>
              Second page.
         </f:verbatim>
         <h:form>
         <h:commandButton type="submit" value="back" action="back" />
         </h:form>
    </f:view>
    </body>
    </html>
    // TestBean
    public class TestBean {
        private boolean ok;
        private String text;
        private String select;
        public boolean isOk() {
            return ok;
        public void setOk(boolean ok) {
            this.ok = ok;
        public String getText() {
            return text;
        public void setText(String text) {
            this.text = text;
        public String getSelect() {
            return select;
        public void setSelect(String select) {
            this.select = select;
    // TestUI
    public class TestUI {
        private UISelectBoolean booleanSelect;
        private UIInput textInput;
        private UISelectOne selectInput;
        private boolean status;
        public void statusChanged(ValueChangeEvent event) {
            status = ((Boolean) event.getNewValue()).booleanValue();
            setRequired();
            if (isStatus()) {
                setComponentValues();
             * Update the checkbox manually as we're skipping the Update Model stage
             * (see FacesContext.getCurrentInstance().renderResponse(); below).
            booleanSelect.setValue(event.getNewValue());
        protected void setComponentValues() {
            textInput.setValue("");
            textInput.setSubmittedValue(null);
        protected void setRequired() {
            textInput.setRequired(!isStatus());
        public UISelectBoolean getBooleanSelect() {
            return booleanSelect;
        public void setBooleanSelect(UISelectBoolean booleanSelect) {
            this.booleanSelect = booleanSelect;
        public UIInput getTextInput() {
            return textInput;
        public void setTextInput(UIInput textInput) {
            textInput.setRequired(true);
            this.textInput = textInput;
        public boolean isStatus() {
            return status;
        public void setStatus(boolean status) {
            this.status = status;
        public UISelectOne getSelectInput() {
            return selectInput;
        public void setSelectInput(UISelectOne selectInput) {
            this.selectInput = selectInput;
    }

  • Spry Validation-text field shows the "required" text even in initial state

    Hi,
    I'm having trouble with spry validation.
    I insert my spry textfied and go to the properties inspector where  I choose validate on "Blur" and "submit" for the Required state. I check the required box for the "required state" but the initial state will also have the "a value is required" text. If I try to delete the "a value is required" text from the initial state, the required state won't show this error.
    What should I do?
    Any help is much appreciated.
    Thank you.

    Hi, thanks so much for the reply
    Well the javascript came with the spry file that I downloaded from the adobe site.
    Here is my statement:
      <label for="name"><span class="style87">Name:</span></label>
                      <span id="sprytextfield1">
                      <input name="name" type="text" class="textInput" id="name" />
                      <span class="textfieldRequiredMsg">A value is required.</span>                  </span></p>
                  <p> <span class="style87">
                      <label for="email">Email:</label>
                      </span><span id="sprytextfield2">
                      <input name="email" type="text" class="textInput" id="email" />
                      <span class="textfieldRequiredMsg">A value is required.</span></span></p>
    This is the statement for the submit button:
      <span class="clearIt">
                      <input name="send" type="submit" id="send" onclick="MM_validateForm('username','','R','password','','R','name','','R','email','','R' ,'comments','','R');return document.MM_returnValue" value="Send comments" />
                    </span><span class="clearIt">
                    <input type="hidden" name="MM_insert" value="form1" />
    This is the javascript
    <script type="text/javascript">
    <!--
    function MM_validateForm() { //v4.0
      if (document.getElementById){
        var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
        for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
          if (val) { nm=val.name; if ((val=val.value)!="") {
            if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
              if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
            } else if (test!='R') { num = parseFloat(val);
              if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
              if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
                min=test.substring(8,p); max=test.substring(p+1);
                if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
          } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
        } if (errors) alert('The following error(s) occurred:\n'+errors);
        document.MM_returnValue = (errors == '');
    //-->
    </script>
    This is at the bottom of the page:
    <script type="text/javascript">
    <!--
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none");
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none", {validateOn:["blur"]});
    //-->
    </script>
    Thank you for your help.

  • Using require() in Web-Engine Plug-in

    Wanted to require function to include a ser of functions in my web-engine plugin
    I added require 'myfunctions' to manifest.lrweb but i get an error that
    module 'myfunctions' not found:
       no field package.preload['myfunctions']
       no file './myfunctions.lua'
       no file '/usr.local.share........
    But in my web plugin Lightroom/Web Galleries/mygallery.lrwebengine there is a file called myfunctions.lua
    Is this where it should go, can't seem to find any documentaion on require with web-engine plug-in

    Hi,
    I haven't tried to write a web engine so don't know the answer off the top of my head. A quick glance at the SDK guide and the two SDK samples didn't give me any hints at the answer.
    Before I nudge one of the gallery developers to see if they know the answer I need to confirm one thing. Can you please confirm you have a file in the same directory as your manifest using the name "myfunctions.lua", and that your require statement looks something like this:
      require "myfunctions"
    (Thie filename should be considered case sensitive).
    I know its an obvious question but I need to ask before I ask one of the others for assistance.
    Matt
    UPDATE: It might also be worth having a look at Sean's 3 post series on web galleries, which is the only other resource I can recall re building web galleries.
    Added additional resource re web gallery development

  • ITunes 8 now requires Quicktime 7.5.5... Even without fixing all its bugs.

    iTunes 8 now requires Quicktime 7.5+... What is that? Even without fixing all its bugs working with OS 10.4.11 and lower. Choppy video is still a problem on G5 machines, I have had to reinstall QT 7.4.5 to fix the problem twice now. (Thanks Pacifist) I wont try to install QT 7.5 again until Apple confirms that they have a problem and that it is assured us having a fixed solution, not just it being a little bit better. I know that the answer is get OS 10.5+ installed, but there are still programs and issues that don't work well within that system. If I had an Intel machine I would not worry as much. But why do these bold requirement statements like to rub in that my computer needs more money inserted after the upgrade instead a warning before hand? ,e

    I am just talking about videos that I have shot with correct transfer codecs and imported into Apples' very own Final Cut Pro and just want to see correctly what I could see before smoothly in QT 7.4.5 and earlier. I have long given up QT for viewing anything .avi or .mp4 and use the preferred VLC software. However, QT and FCP are in bed together for obvious reasons. Let's face it... QT does not play everything, nor do I think they try to. No on can survive viewing with QT alone.

  • China Financial statement - Golden Tax audit

    Hi
    Regarding an implementation for a client in China, the client needs to generate their financial statements in the statutory formats as given by China authorities. They are presently generating these statements using a third party software called FORMWARE. This software is fed with data from SAP to generate these statements.
    My doubt is whether standard SAP supports generation of financial statements in statutory format. The required statements are balance sheet, income statement, cash flow statement, GL balance list and some other statements. 
    If anyone has come across this scenario, please let me know whether SAP supports China financial statement generation and how to generate them.
    The financial details which is generated from ECC 6 is in the format prior to April 2007 . We are given to understand that in china the statutory format were changed in April 2007 . To give an example the balance sheet coming out of ECC 6 SAP is in vertical format where as the current format recommened by  China Govt is in horizontal format - T shape . We are using the golden Tax audit system in SAP to generate the above report .
    Please share your experience in this regard as we are not sure if STD SAP support china local statutory fianancial format
    Regards
    Ram

    Hi,
    SAP Golden Audit  provides data interface to China government. However, you have to do the second development for the report, BS/PL and so on. If you want to implement them in SAP, you need to config the alternative account in account master data maintain. 
    The 3rd software transfers SAP transaction data to their own database and do account mapping at same time. As a result, just report format is China standard. Real accounting rule still is global's.
    So, the best solution is no need to transfer SAP transaction data. Just extract balance by BAPI to excel. Use formula to calculate BS/PL report. If it's necessary, extract documents to excel by China reporting format for printing purpose.   
    We have this solution, no need ABAP and just upload three requests. All China standard report can be generated.
    If you needs more details, contact, +86 21 51688870 - 810. Our expert will give you professional advice.

  • Daily User Stats of users log on for the Day

    Im need stats of users log on for the previous days on the system. Ive been to transation suim but I get stats on the users last logon. I require stats on a day to day basis so that I can anaylze how many users log on every day.
    Thank you
    [email protected]

    Hi,
    You could use Audit Logs:
    http://help.sap.com/saphelp_erp2004/helpdata/en/c7/69bcb7f36611d3a6510000e835363f/frameset.htm
    You specify the activities that you want to log in filters using the transaction SM19. You can read the log using the transaction SM20. You can delete old logs with the transaction SM18.
    Regards,
    Siddhesh

  • Regarding loop statement

    hi,
    how to find whether a statement exists between loop and endloop.
    for eg:
              loop at itab.
              clear.....
               endloop.
    want check whether clear statement exists between loop.
    Thanks

    Take the report into one Internal table say t_source1 using below statement.
        Reading Report to delete the comments
          READ REPORT p_pgname INTO t_source1.
    Get all the includes of the program into an internal table
          CALL FUNCTION 'GET_INCLUDETAB'
            EXPORTING
              progname = p_pgname
            TABLES
              incltab  = i_incl_tab.
          IF NOT i_incl_tab[] IS INITIAL.
          Loop at this internal table and append all the data to
          Main Report table
            LOOP AT i_incl_tab INTO wa_incl_tab.
              READ REPORT wa_incl_tab-line INTO t_source_tmp.
              APPEND LINES OF t_source_tmp TO t_source1.
              REFRESH t_source_tmp[].
              CLEAR wa_incl_tab.
            ENDLOOP.
          ENDIF.
    Now LOOP AT t_source1 INTO wa_source1 ..... This t_source1 is an internal table with all the lines including all subroutines.....
    You can read the table line by line with Key word LOOP and once find then you can find the required Statement ....
    Include one more condition... If you find a Keywork ENDLOOP then it means your required statement does not exist in LOOP and ENDLOOP..... if found then you can set a Flag....
    Thanks,
    Amol
    I think this will solve your purpose.

  • 'Required components are disabled' error during trial install

    I've downloaded the CS5.5 trial for the first time. When I install, I see three checkboxes for install: Encore, OnLocation, and Premiere Pro. The first two are checked, but the third is unchecked with a red X to the right of its name. If I try to select Premiere Pro, I see on the right side the message: 'Required compnents are disabled'. I have no idea what this means, but it unfortunately is immutable and prevents me from installing.
    Older forum posts mention this phrase and that you need to run CS5Clean. I've done this and while I have some software installed (Flash Builder, , I've never installed Premiere before. Here is the output of my cleanup.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <Products>
        <Properties>
            <Property name="eulaAccepted">1</Property>
        </Properties>
        <CS5>
            <!--<Product productName="Adobe Flash Catalyst CS5.5" version="1.5"/>-->
            <!--<Product productName="Adobe Flash Media Live Encoder" version="3.1"/>-->
            <!--<Product productName="Adobe Flash Builder 4" version="4.0"/>-->
            <!--<Product productName="Adobe Flash Builder" version="4.5"/>-->
            <!--<Product productName="Adobe Illustrator CS5.1" version="15.1"/>-->
            <!--<Product productName="Adobe Audition" version="4.0"/>-->
        </CS5>
        <CS4>
            <!--<Product productName="Adobe SwitchBoard 1.0" version="1.0.0"/>-->
        </CS4>
        <CS3>
            <!--<Product productName="Adobe Update Manager CS3" version="5.1.0"/>-->
        </CS3>
    </Products>
    Any ideas?

    I'm running a Macbook Pro i7 2.66Ghz 2010 model (6.2) with 8GB of RAM and ~18GB of space remaining.
    A few possibilities looking over the list:
    - These models come with NVIDIA GeForce GT 330M video card, which I see is not in your supported GPU-accelerated list. Is GPU acceleration a hard requirement?
    - I'm running off of a OCZ Vertex 3 solid-state drive. The requirements state a 7200RPM drive. While my drive more than meets that limit, I'm wondering if it's being detected incorrectly.
    - I have swapped out my DVD drive for a second hard drive. It would not seem a necessary system requirement to have a DVD drive for the Premiere Pro functionality, but if this is a hard requirement then this may be the problem.
    I can't do much about the first, but if it's either of the latter two I might. It'd be nice if the installer could tell me this directly.

  • SOS...Cant Install CS5, Exit Code 7, memory requirement not met, etc.

    I am attempting installation of newly purchased CS5 Design Premium.  My system will not support InDesign so I unchecked that before attempting install. I ran install under normal and safe boot and the following messages occur in each..
    Exit Code: 7......0 fatal error(s), 65 error(s), 124 warning(s) 
    WARNING: DW036: Payload cannot be installed due to dependent operation failure, and so on...
    and the first of the errors....
    ERROR: Updating driver data failed. Driver entry was not added. ARP estimated size 3726KB
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Adobe WinSoft Linguistics Plugin CS5: Install failed
    ERROR: DW050:  - Adobe CSXS Infrastructure CS5: Install failed
    ERROR: DW050:  - SiteCatalyst NetAverages: Install failed,
    and so on, stating all installations had failed.      
    My file system is Journaled HFS+ , (is this case-insensitive??) with 30 GB free. I am running a 32bit MacBook with OSX 10.6.8  I have been on with tech support where I purchased the CS5 design premium. I have 1GB RAM, I was told by them that I need 2GB, the box system requirements state it needs 1GB and the read me file says I need 500MB.
    Is this something that would prevent my install and cause these install errors under exit code 7?  The warning pertaining to dependent operation failure seems too generic to help at all.  I have been trying to get this program up and running for a week and my work is piling up, please help or advise.  My head is spinning!
    Note: Please keep in mind that I am new to Mac OS. I always been stuck with a Windows PC until recently. Therefore some things are difficult for me to grasp at this point.
    THANK YOU FOR ANY AND ALL HELP!SOS...Cant Install CS5, Exit Code 7, memory requirement not met, etc.

    Exit Code: 6, Exit Code: 7 Installation Errors - http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html
    Troubleshoot with install logs | CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html for information on how to review your installation logs

  • "State" Design Pattern Issues

    I am implementing a class that requires state information. I decided to follow the design pattern, and I found a great site for reference (which provided the code below) but I need to implement substates. It would be impractical to store all of the states in the fashion below. I am trying to find a way to somehow store another substate in the class below without creating so many classes. I am thinking about creating the substates the classic way with just constants, but I cant store the current substate in the static final States. In short, either using the code below or not, how do I implement a system with states and substates following the State Design Pattern?
    abstract class State {
        static State initialState;
        static final State state1 = new State1();
        static final State state2 = new State2();
        protected State() {
          if (initialState == null) initialState = this;
        abstract void stateExit(StateOwner owner);
        abstract void stateEnter(StateOwner owner);
      class State1 extends State {
        void stateExit(StateOwner owner) {
        void stateEnter(StateOwner owner) {
      class State2 extends State {
        void stateExit(StateOwner owner) {
        void stateEnter(StateOwner owner) {
      }

    This isn't exactly an implementation of the state pattern.
    I suggest that you check out the GOF book for details but here are some suggestions:
    1) Your abstract State should not contain State objects but should provide the interface for your State behavior.
    2) Each substate that you describe is actually an individual State and should be a concrete implementation of the State class or interface.
    3) There are several ways to handle state transitions but one that I like is to have the concrete States know about when to make state transitions and provide a call back mechanism to the context that has the handle to the state to allow the state to set the new state in the context when a state transition occurs.
    For example
    abstract class State
        abstract void stateExit(StateOwner owner);
        abstract void stateEnter(StateOwner owner);
    class State1 extends State {   
        void stateExit(StateOwner owner) {
            owner.setState(new State2().stateEnter(owner));
        void stateEnter(StateOwner owner) {
    class State2 extends State {
       void stateExit(StateOwner owner) {
        void stateEnter(StateOwner owner) {
    public class StateOwner
        State s;
        public StateOwner()
            s = new State1(this);
            s.stateEnter(this);
        public void setState(State s)
            this.s = s;
    }This is how I've implemented it and in general how it is done in GOF.
    Hope this helps.
    Charles

  • HTC Hero with Android 2.1 fails to meet minimum requirements

    System requirements states android 2.0+ needed. My Orange HTC Hero is upgraded to 2.1-update1
    Firefox installs but won't run;
    "This device does not meet the minimum system requirments for Firefox"

    For full system requirements, and an experimental version for phones with ARMv6 processors like the Hero, see: https://wiki.mozilla.org/Mobile/Platforms/Android

  • How to do without TABLES statement allowed..??

    Hi all,
    In OO programming many things are not allowed eg the keyword TABLES is not allowed.
    The statement "SELECT-OPTIONS: kunnr FOR  vbak-kunnr." requires statement "TABLES vbak." but in OO we can't use "tables.." so how do we declare variables which are based on/similar to elements in database tables? How would we modify the select-options statement then?
    Thanks,
    Charles.

    Worked like a charm. Note that if you use internal tables and don't have variables for some of the select-options fields you can also refer to the fields defined in the itab. However, you can't refer to the itab directly since it lacks the (deprecated) header line so you'll have to use a work area for it instead.
    TYPES:
      BEGIN OF ty_vbak,
        vbeln LIKE vbak-vbeln,
        kunnr LIKE vbak-kunnr,
      END OF ty_vbak.
    DATA:
        lt_vbak TYPE STANDARD TABLE OF ty_vbak,
        lwa_vbak LIKE LINE OF lt_vbak.
    SELECT-OPTIONS : s_kunnr FOR lwa_vbak-kunnr.

  • Required components are disabled

    Hello,
    I am trying install AE CS5.5 on my computer:
    Windows 7 Professional
    srv pck 1
    Intel(R) Core(TM) i3 CPU     M 370 @  2.40GHz
    Installed memory (RAM):     8.00 GB (7.80 GB usable)
    System Type:     64-Bit
    Once I get to the actual install portion of the setup is states "required components are disabled" and I am unable to check the box to install. I have 12.8 GB of available space on my computer and the install box indicates that the install will only use 433 MB? Is that correct, seems small. Either way I have plenty of memory, and the box states that I have the 64-bit compatible AE, and it appears I have all the requirements from the back of the box as well. So what gives? Why could it be saying this? Mabe I don't have enough "cache"? Not even really sure what cache is or if it's applicable here but I at this point I'm just taking shots in the dark. Any help would be appreciated. Thank you!!

    I'm running a Macbook Pro i7 2.66Ghz 2010 model (6.2) with 8GB of RAM and ~18GB of space remaining.
    A few possibilities looking over the list:
    - These models come with NVIDIA GeForce GT 330M video card, which I see is not in your supported GPU-accelerated list. Is GPU acceleration a hard requirement?
    - I'm running off of a OCZ Vertex 3 solid-state drive. The requirements state a 7200RPM drive. While my drive more than meets that limit, I'm wondering if it's being detected incorrectly.
    - I have swapped out my DVD drive for a second hard drive. It would not seem a necessary system requirement to have a DVD drive for the Premiere Pro functionality, but if this is a hard requirement then this may be the problem.
    I can't do much about the first, but if it's either of the latter two I might. It'd be nice if the installer could tell me this directly.

Maybe you are looking for

  • How to restore my backed up photos from iCloud on new hard drive?

    My hard drive failed on my first mac book pro, I have a time machine which has restored all my data on to the new hard drive. However all my photos/videos have not been restored. Can i access these through my backup on iCloud and how ? Why have my ph

  • How to set payment form in payment methods in CRMD_ORDER

    Hi All, while creating service order before going to save, i need to check wether the payment card number and type fields are empty or not(in transactional data there is a tab payment methods) , if empty i need to set the payment form field as 'payme

  • Installing custom shapes in PSE 7

    I have some .csh files I used when I had PSE 4 and have just upgraded. I've been able to successfully edit the meta data files and install layer styles but can't figure out how to access the custom shapes files. I had expected to click on the double

  • EJB QL - Free Text in Query Condition

    Hi, Is there a way to write free sql text in the where condition of an entity bean (CMP), not using the ejb ql ? How can I control this part, and how can I also add compiler / optimizer directives in the statement when using entity beans (CMP). Thank

  • Why does Project 2010 Pro crash on cut and paste operation, among many other problems?

    I guess my question has more to do with this: I'm trying to find a hotfix, patch or update for this. Can you advise? Thanks, Aldo