Need help with API and sample code for checking a user's rights on a folder

Hi All,
I am working on an UCM integration where user supplies a folderpath (ucm folders), and a file is later uploaded to this location.
Since a user can provide a folderpath where he has only Read Access or no access at all, we are trying to work out a way to pre-check his permissions on the folder.
Since we have Entity Security enabled, we have 5 security fields to rely on Account, Security Group, User Access List, Group Access List, Role Access List.
Writing custom code for this security check is second on our agenda.
Firstly, we wish to know the API and sample code that typically performs this Security Check in UCM.
We could find intradoc.shared.SecurityUtils which has methods to check security on SGroup and Account, but we couldn't find anything for:
1) Overall security check
2) ACL security check on top of sgroup and account security check

Any ideas anyone?!
I am looking forward to some pointers here. :(

Similar Messages

  • Need case studies and sample code for all concept of ABAP

    Hello,
           Can anybody provide me the case studies and sample code for learning different concepts in ABAP programming like: module pool, ALV, interactive reports, BDC, Smart Form etc.? As I want to do some practical application by which i can learn more.
    Thanks & Regards,
    Vikram Rawal

    In this link You can find Step by Step Scren Shot document :
    http://www.201interviewquestions.com/docs/User%20exits.ppt
    http://erpgenie.com/abaptips/component/option,com_docman/task,doc_details/gid,27/
    <b>
    Reprots</b>
    http://www.sapgenie.com/abap/reports.htm
    http://www.allsaplinks.com/material.html
    http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
    http://www.sapfans.com/forums/viewtopic.php?t=58286
    http://www.sapfans.com/forums/viewtopic.php?t=76490
    http://www.sapfans.com/forums/viewtopic.php?t=20591
    http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
    <b>Dictionary</b>
    http://sapabap.iespana.es/sapabap/manuales/learnabap/
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb6e446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ea31446011d189700000e8322d00/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBDIC/BCDWBDIC.pdf
    <b>ABAP objects</b>
    Please check this online document (starting page 1291).
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
    Also check this links as well.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
    http://www.sapgenie.com/abap/OO/
    http://www.futureobjects.de/content/intro_oo_e.html
    http://www.sap-img.com/abap/business-add-in-you-need-to-understand-abap-oo-interface-concept.htm
    /people/ravikumar.allampallam/blog/2005/02/11/abap-oo-in-action
    <b>
    SAPScripts</b>
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    Check these step-by-step links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
    <b>Smartforms material</b>
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    <b>
    BAPI</b>
    http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    Checkout !!
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sapgenie.com/abap/bapi/example.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    <b>List of all BAPIs</b>
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sappoint.com/abap/bapiprg.pdf
    http://www.sappoint.com/abap/bapiactx.pdf
    http://www.sappoint.com/abap/bapilst.pdf
    http://www.sappoint.com/abap/bapiexer.pdf
    http://service.sap.com/ale
    http://service.sap.com/bapi
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.topxml.com/sap/sap_idoc_xml.asp
    http://www.sapdevelopment.co.uk/
    http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
    <b>ALV programs.</b>
    http://www.geocities.com/mpioud/Abap_programs.html
    . How do I program double click in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=11601
    http://www.sapfans.com/forums/viewtopic.php?t=23010
    How can I use ALV for reports that are going to be run in background?
    http://www.sapfans.com/forums/viewtopic.php?t=83243
    http://www.sapfans.com/forums/viewtopic.php?t=19224
    <b>ALV</b>
    http://www.sapfans.com/forums/viewtopic.php?t=58286
    http://www.sapfans.com/forums/viewtopic.php?t=76490
    http://www.sapfans.com/forums/viewtopic.php?t=20591
    http://www.sapfans.com/forums/viewtopic.php?t=66305 - http://www.sapgenie.com/abap/reports.htm
    http://www.allsaplinks.com/material.html
    http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
    <b>Top-of-page in ALV</b>
    selection-screen and top-of-page in ALV
    <b>ALV Group Heading</b>
    http://www.sap-img.com/fu037.htm
    <b>ALV</b>
    http://www.geocities.com/mpioud/Abap_programs.html
    <b>
    RFC Destination</b>
    Re: SM59
    <b>
    ALE/ IDOC</b>http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    <b>Table Control</b>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/table%20control%20in%20abap.pdf
    <b>
    ABAP transactions</b>
    http://www.easymarketplace.de/transactions-a-e.php?Area=4soi&name=volker&pw=vg&
    Regards,
    Priyanka.

  • MOVED: [Athlon64] Need Help with X64 and Promise 20378

    This topic has been moved to Operating Systems.
    [Athlon64] Need Help with X64 and Promise 20378

    I'm moving this the the Administration Forum.  It seems more apporpiate there.

  • Need help with JTextArea and Scrolling

    import java.awt.*;
    import java.awt.event.*;
    import java.text.DecimalFormat;
    import javax.swing.*;
    public class MORT_RETRY extends JFrame implements ActionListener
    private JPanel keypad;
    private JPanel buttons;
    private JTextField lcdLoanAmt;
    private JTextField lcdInterestRate;
    private JTextField lcdTerm;
    private JTextField lcdMonthlyPmt;
    private JTextArea displayArea;
    private JButton CalculateBtn;
    private JButton ClrBtn;
    private JButton CloseBtn;
    private JButton Amortize;
    private JScrollPane scroll;
    private DecimalFormat calcPattern = new DecimalFormat("$###,###.00");
    private String[] rateTerm = {"", "7years @ 5.35%", "15years @ 5.5%", "30years @ 5.75%"};
    private JComboBox rateTermList;
    double interest[] = {5.35, 5.5, 5.75};
    int term[] = {7, 15, 30};
    double balance, interestAmt, monthlyInterest, monthlyPayment, monPmtInt, monPmtPrin;
    int termInMonths, month, termLoop, monthLoop;
    public MORT_RETRY()
    Container pane = getContentPane();
    lcdLoanAmt = new JTextField();
    lcdMonthlyPmt = new JTextField();
    displayArea = new JTextArea();//DEFINE COMBOBOX AND SCROLL
    rateTermList = new JComboBox(rateTerm);
    scroll = new JScrollPane(displayArea);
    scroll.setSize(600,170);
    scroll.setLocation(150,270);//DEFINE BUTTONS
    CalculateBtn = new JButton("Calculate");
    ClrBtn = new JButton("Clear Fields");
    CloseBtn = new JButton("Close");
    Amortize = new JButton("Amortize");//DEFINE PANEL(S)
    keypad = new JPanel();
    buttons = new JPanel();//DEFINE KEYPAD PANEL LAYOUT
    keypad.setLayout(new GridLayout( 4, 2, 5, 5));//SET CONTROLS ON KEYPAD PANEL
    keypad.add(new JLabel("Loan Amount$ : "));
    keypad.add(lcdLoanAmt);
    keypad.add(new JLabel("Term of loan and Interest Rate: "));
    keypad.add(rateTermList);
    keypad.add(new JLabel("Monthly Payment : "));
    keypad.add(lcdMonthlyPmt);
    lcdMonthlyPmt.setEditable(false);
    keypad.add(new JLabel("Amortize Table:"));
    keypad.add(displayArea);
    displayArea.setEditable(false);//DEFINE BUTTONS PANEL LAYOUT
    buttons.setLayout(new GridLayout( 1, 3, 5, 5));//SET CONTROLS ON BUTTONS PANEL
    buttons.add(CalculateBtn);
    buttons.add(Amortize);
    buttons.add(ClrBtn);
    buttons.add(CloseBtn);//ADD ACTION LISTENER
    CalculateBtn.addActionListener(this);
    ClrBtn.addActionListener(this);
    CloseBtn.addActionListener(this);
    Amortize.addActionListener(this);
    rateTermList.addActionListener(this);//ADD PANELS
    pane.add(keypad, BorderLayout.NORTH);
    pane.add(buttons, BorderLayout.SOUTH);
    pane.add(scroll, BorderLayout.CENTER);
    addWindowListener( new WindowAdapter()
    public void windowClosing(WindowEvent e)
    System.exit(0);
    public void actionPerformed(ActionEvent e)
    String arg = lcdLoanAmt.getText();
    int combined = Integer.parseInt(arg);
    if (e.getSource() == CalculateBtn)
    try
    JOptionPane.showMessageDialog(null, "Got try here", "Error", JOptionPane.ERROR_MESSAGE);
    catch(NumberFormatException ev)
    JOptionPane.showMessageDialog(null, "Got here", "Error", JOptionPane.ERROR_MESSAGE);
    if ((e.getSource() == CalculateBtn) && (arg != null))
    try{
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 1))
    monthlyInterest = interest[0] / (12 * 100);
    termInMonths = term[0] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 2))
    monthlyInterest = interest[1] / (12 * 100);
    termInMonths = term[1] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 3))
    monthlyInterest = interest[2] / (12 * 100);
    termInMonths = term[2] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    catch(NumberFormatException ev)
    JOptionPane.showMessageDialog(null, "Invalid Entry!\nPlease Try Again", "Error", JOptionPane.ERROR_MESSAGE);
    }                    //IF STATEMENTS FOR AMORTIZATION
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 1))
    loopy(7, 5.35);
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 2))
    loopy(15, 5.5);
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 3))
    loopy(30, 5.75);
    if (e.getSource() == ClrBtn)
    rateTermList.setSelectedIndex(0);
    lcdLoanAmt.setText(null);
    lcdMonthlyPmt.setText(null);
    displayArea.setText(null);
    if (e.getSource() == CloseBtn)
    System.exit(0);
    private void loopy(int lTerm,double lInterest)
    double total, monthly, monthlyrate, monthint, monthprin, balance, lastint, paid;
    int amount, months, termloop, monthloop;
    String lcd2 = lcdLoanAmt.getText();
    amount = Integer.parseInt(lcd2);
    termloop = 1;
    paid = 0.00;
    monthlyrate = lInterest / (12 * 100);
    months = lTerm * 12;
    monthly = amount *(monthlyrate/(1-Math.pow(1+monthlyrate,-months)));
    total = months * monthly;
    balance = amount;
    while (termloop <= lTerm)
    displayArea.setCaretPosition(0);
    displayArea.append("\n");
    displayArea.append("Year " + termloop + " of " + lTerm + ": payments\n");
    displayArea.append("\n");
    displayArea.append("Month\tMonthly\tPrinciple\tInterest\tBalance\n");
    monthloop = 1;
    while (monthloop <= 12)
    monthint = balance * monthlyrate;
    monthprin = monthly - monthint;
    balance -= monthprin;
    paid += monthly;
    displayArea.setCaretPosition(0);
    displayArea.append(monthloop + "\t" + calcPattern.format(monthly) + "\t" + calcPattern.format(monthprin) + "\t");
    displayArea.append(calcPattern.format(monthint) + "\t" + calcPattern.format(balance) + "\n");
    monthloop ++;
    termloop ++;
    public static void main(String args[])
    MORT_RETRY f = new MORT_RETRY();
    f.setTitle("MORTGAGE PAYMENT CALCULATOR");
    f.setBounds(600, 600, 500, 500);
    f.setLocationRelativeTo(null);
    f.setVisible(true);
    }need help with displaying the textarea correctly and the scroll bar please.
    Message was edited by:
    new2this2020

    What's the problem you're having ???
    PS.

  • Need help with trim and null function

    Hi all,
    I need help with a query. I use the trim function to get the first three characters of a string. How do I write my query so if a null value occurs in combination with my trim to say 'Null' in my results?
    Thanks

    Hi,
    Thanks for the reply. What am I doing wrong?
    SELECT trim(SUBSTR(AL1.user_data_text,1,3)),NVL
    (AL1.user_data_text,'XX')
    FROM Table
    I want the XX to appear in the same column as the
    trim.The main thing you're doing wrong is not formatting your code. The solution may become obvious if you do.
    What you're saying is:
    SELECT  trim ( SUBSTR (AL1.user_data_text, 1, 3))
    ,       NVL ( AL1.user_data_text, 'XX' )
    FROM    Tablewhich makes it clear that you're SELECTing two columns, when you only want to have one.
    If you want that column to be exactly like the first column you're currently SELECTing, except that when that column is NULL you want it to be 'XX', then you have to apply NVL to that column, like this:
    SELECT  NVL ( trim ( SUBSTR (AL1.user_data_text, 1, 3))
                , 'XX'
    FROM    Table

  • I need help with setting up time machine for backup

    I would like help with setting up time machine for backup.

    You will need an external hard drive (formatted for a Mac).
    Then you plug it in and go to system preferences>time machine and select the external HD and turn it on.
    The backups are automatic.
    Barry

  • Need help with backup and clean install

    Need Assistance with G5
    Background
    I'm an inexperienced Mac user with a G5, twin 2.0 gig processors and 1.5
    gig ram. The OS is v10.3.6. It is the latest OS that will not slow down
    internet (Safari/Mail) applications. Anything newer has really slowed internet applications down big time.
    Current Problem
    I've probably messed up my hard drive by switching back and forth
    (archive/install) from newer to present OS. I now have corrupted data and
    while my Mac is useable, several things do not work (disk utility, printing
    and possibly more). I have a mixture of new and older versions of
    these applications/utilities in my OS.
    Going Forward
    I believe I need to wipe out my hard drive and do a clean install. I also have a Mac mini which I can use (I believe) for backup via firewire.
    Backup
    Is everything I need to backup in the "User" folder? My spouse and I have
    separate accounts and a shared account on the same Mac, with a total of 8.5 gig of data, mostly photo's and music. We want to save that and the usual preferences and favorites/bookmarks/addresses/email, etc. It would be nice if all I had to do was drag the user folder into the target drive.
    I'd appreciate any assistance. I have more questions which I'll get to later, but I need to start somewhere.
    Thanks all
    Mac G5    

    Backing up your Users folder will save everything in all the accounts on the computer including pictures, music, preferences, etc. as long as they were kept in that folder.
    If you have File Vault turned on you should turn it off. The "correct" procedure for transferring to your Mac Mini is as follows:
    1. Turn both computers off. Connect them together with a Firewire cable.
    2. Boot the G5 into Target Disk Mode.
    3. Then boot the Mac Mini normally. The G5's hard drive should be present on the Mini's Desktop.
    4. Create a new folder on the Mini and name it something appropriate like G5 User Backup. Drag the Users folder on the G5 into this new folder on the Mini.
    After the transfer completes you should verify that everything has been transferred and is there in the folder.
    5. Drag the G5's hard drive icon from the Desktop to the Trash or CTRL-click on its icon and select Eject from the contextual menu.
    6. Shutdown the G5 and remove the Firewire cable connecting the two computers.
    You can now proceed to fix the G5. Because you are planning to erase the hard drive I would like to suggest you do an extended format to prep the hard drive properly for your restoration:
    1. Boot from your Panther Installer Disk. After the installer loads select Disk Utility from the Installer menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Set the number of partitions from the dropdown menu (use 1 partition unless you wish to make more.) Set the format type to Mac OS Extended (Journaled, if supported.) Click on the Partition button and wait until the volume(s) mount on the Desktop.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled, if supported.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process will take 30 minutes to an hour or more depending upon the drive size.
    You can then quit Disk Utility and return to the installer. Now proceed to reinstall OS X. Be sure you set up your accounts with the exact same usernames and passwords as you used before.
    Once you have completed your reinstallation on the G5 you can restore your Users folder from the Mac Mini.
    1. Shut down both computers. Connect them with a Firewire cable.
    2. Boot the G5 into Target Disk Mode.
    3. Boot the Mac Mini normally. G5's hard drive should appear on the Mini's Desktop.
    4. Open a Finder window on the G5's hard drive and drag the Users folder to the Trash (don't delete yet.)
    5. Now copy the saved Users folder from the Mac Mini to the G5 (only the Users folder, not the folder in which you stored it.)
    6. Eject the G5's hard drive from the Mini's Desktop and shut down the G5.
    7. Disconnect the Firewire cable.
    Now restart the G5. If all worked well it should start up normally and you should find everything normal in your accounts.
    There is one potential problem in all the above. All your account preferences are contained in the Users folder. If you have any corrupted preferences, they will still be corrupted and may continue to cause problems. If that's the case you may need to trash the /Home/Library/Preferences/ folder's contents. Hopefully, this won't be the case, but you should be aware of the possibility.
    If eveything is working normally you can empty the Trash and delete the contents. Same on the Mac Mini.

  • Noob needs help with Logic and Motu live setup.

    Hello everyone,
    I'm a noob / semi noob who could use some help with a live setup using 2 MOTU 896HD's and Logic on a Mac.
    Here's the scenario:
    I teach an outdoor marching percussion section (a drumline and a front ensemble of marimbas and vibes). We have an amazing setup of live sound to amplify and enhance the mallet percussion. There is a yamaha PA system with 2 subs and 2 mains which are routed through a rack unit that processes the overall PA balance. I'm pretty sure that the unit is supposed to avoid feedback and do an overall cross-over EQ of the sound. Other then that unit, we have 2 motu896hd units which are routed via fire-wire. I also have a coax cable routing the output of the secondary box to the input of the primary box (digital i/o which converts to ADAT in (i think?)..?
    Here's the confusion:
    There are more then 8 inputs being used from the ensemble itself, so I need the 16 available inputs to be available in Logic. I was lead to believe that the 2nd motu unit would have to be sent digitally to the 1st motu unit via coax digital i/o. Once in Logic, however, I cannot find the signal or any input at all past the 8th input (of the 1st unit).
    Here's the goal:
    All of my performers and inputs routed via firewire into a Mac Mini running OSX and Logic pro.
    I want to be able to use MainStage and run different patches of effects / virt. instruments for a midi controller keyboard / etc.
    I want to be able to EQ and balance the ensemble via Logic.
    Here's another question:
    How much latency will I be dealing with? Would a mac mini with 4gb of ram be able to handle this load? With percussion, I obviously want the sound as latency free as possible. I also, however, want the flexibility of sound enhancement / modification that comes with Logic and the motu896hd units.
    Any help would be REALLY appreciated. I need the routing assistance along with some direction as to whether or not this will work for this type of application. I'm pretty certain it does, as I have spoken with some other teachers in similar venues and they have been doing similar things using mac mini's / logic / mainstage / etc.
    Thanks in advance,
    Chris

    You'll definitely want to read the manual to make sure the 896HDs are connected together properly. ADAT is a little tricky, it's not just a matter of cabling them together. Go to motunation.com if you need more guidance on connecting multiple devices. Beyond that initial hookup, here are a couple of quick suggestions:
    1. Open CueMix and see if both devices are reported there. If not, your connections aren't correct. Be sure to select 44.1kHz as your sample rate, otherwise you are reducing the number of additional channels. For instance at 88.2kHz you would get half the additional channels via ADAT.
    2. You may need to create an aggregate device for the MacBook to recognize more than the first 896HD. Lots of help on this forum for how to do that. Again, first make sure you have the 896HDs connected together properly.
    3. As for latency with Mainstage on the Mini, no way to know until you try it. Generally MOTU is fantastic for low latency work but Mainstage is a question mark for a lot of users right now. If the Mini can't cut the mustard, you have a great excuse to upgrade to a MacBook Pro.

  • Need HELP with objects and classes problem (program compiles)

    Alright guys, it is a homework problem but I have definitely put in the work. I believe I have everything right except for the toString method in my Line class. The program compiles and runs but I am not getting the right outcome and I am missing parts. I will post my problems after the code. I will post the assignment (sorry, its long) also. If anyone could help I would appreciate it. It is due on Monday so I am strapped for time.
    Assignment:
    -There are two ways to uniquely determine a line represented by the equation y=ax+b, where a is the slope and b is the yIntercept.
    a)two diffrent points
    b)a point and a slope
    !!!write a program that consists of three classes:
    1)Point class: all data MUST be private
    a)MUST contain the following methods:
    a1)public Point(double x, double y)
    a2)public double x ()
    a3public double y ()
    a4)public String toString () : that returns the point in the format "(x,y)"
    2)Line class: all data MUST be private
    b)MUST contain the following methods:
    b1)public Line (Point point1, Point point2)
    b2)public Line (Point point1, double slope)
    b3)public String toString() : that returns the a text description for the line is y=ax+b format
    3)Point2Line class
    c1)reads the coordinates of a point and a slope and displays the line equation
    c2)reads the coordinates of another point (if the same points, prompt the user to change points) and displays the line equation
    ***I will worry about the user input later, right now I am using set coordinates
    What is expected when the program is ran: example
    please input x coordinate of the 1st point: 5
    please input y coordinate of the 1st point: -4
    please input slope: -2
    the equation of the 1st line is: y = -2.0x+6.0
    please input x coordinate of the 2nd point: 5
    please input y coordinate of the 2nd point: -4
    it needs to be a diffrent point from (5.0,-4.0)
    please input x coordinate of the 2nd point: -1
    please input y coordinate of the 2nd point: 2
    the equation of the 2nd line is: y = -1.0x +1.0
    CODE::
    public class Point{
         private double x = 0;
         private double y = 0;
         public Point(){
         public Point(double x, double y){
              this.x = x;
              this.y = y;
         public double getX(){
              return x;
         public double setX(){
              return this.x;
         public double getY(){
              return y;
         public double setY(){
              return this.y;
         public String toString(){
              return "The point is " + this.x + ", " + this.y;
    public class Line
         private double x = 0;
         private double y = 0;
         private double m = 0;
         private double x2 = 0;
         private double y2 = 0;
         public Line()
         public Line (Point point1, Point point2)
              this.x = point1.getX();
              this.y = point1.getY();
              this.x2 = point2.getX();
              this.y2 = point2.getY();
              this.m = slope(point1, point2);
         public Line (Point point1, double slope)
              this.x = point1.getX();
              this.y = point1.getY();
         public double slope(Point point1, Point point2)//finds slope
              double m1 = (point1.getY() - point2.getY())/(point1.getX() - point2.getX());
              return m1;
         public String toString()
              double temp = this.x- this.x2;
              return this.y + " = " +temp + "" + "(" + this.m + ")" + " " + "+ " + this.y2;
              //y-y1=m(x-x1)
    public class Point2Line
         public static void main(String[]args)
              Point p = new Point(3, -3);
              Point x = new Point(10, 7);
              Line l = new Line(p, x);
              System.out.println(l.toString());
    }My problems:
    I dont have the right outcome due to I don't know how to set up the toString in the Line class.
    I don't know where to put if statements for if the points are the same and you need to prompt the user to put in a different 2nd point
    I don't know where to put in if statements for the special cases such as if the line the user puts in is a horizontal or vertical line (such as x=4.7 or y=3.4)
    Edited by: ta.barber on Apr 20, 2008 9:44 AM
    Edited by: ta.barber on Apr 20, 2008 9:46 AM
    Edited by: ta.barber on Apr 20, 2008 10:04 AM

    Sorry guys, I was just trying to be thorough with the assignment. Its not that if the number is valid, its that you cannot put in the same coordinated twice.
    public class Line
         private double x = 0;
         private double y = 0;
         private double m = 0;
         private double x2 = 0;
         private double y2 = 0;
         public Line()
         public Line (Point point1, Point point2)
              this.x = point1.getX();
              this.y = point1.getY();
              this.x2 = point2.getX();
              this.y2 = point2.getY();
              this.m = slope(point1, point2);
         public Line (Point point1, double slope)
              this.x = point1.getX();
              this.y = point1.getY();
         public double slope(Point point1, Point point2)//finds slope
              double m1 = (point1.getY() - point2.getY())/(point1.getX() - point2.getX());
              return m1;
         public String toString()
              double temp = this.x- this.x2;
              return this.y + " = " +temp + "" + "(" + this.m + ")" + " " + "+ " + this.y2;
              //y-y1=m(x-x1)
    public class Point2Line
         public static void main(String[]args)
              Point p = new Point(3, -3);
              Point x = new Point(10, 7);
              Line l = new Line(p, x);
              System.out.println(l.toString());
    }The problem is in these lines of code.
    public double slope(Point point1, Point point2) //if this method finds the slope than how would i use the the two coordinates plus "m1" to
              double m1 = (point1.getY() - point2.getY())/(point1.getX() - point2.getX());
              return m1;
         public String toString()
              double temp = this.x- this.x2;
              return this.y + " = " +temp + "" + "(" + this.m + ")" + " " + "+ " + this.y2;
              //y-y1=m(x-x1)
         }if slope method finds the slope than how would i use the the two coordinates + "m1" to create a the line in toString?

  • Need help changing size and aspect ratio for 500+ images

    Thank you for reading this! I have about 500 images of people in different poses. They're all extracted on a transparency as PNGs. They vary in aspect ratio, dimensions and position of the person within the frame - for some the feet are very close to the bottom of the frame and for some, they're higher up. I need to equalize all 3 of these qualities, so that if superimposed, they look like a video unfolding with the same zoom. My ideal size would be 800x800 at 300ppi.
    Is there a way to batch even a part of the process and keep the png format? I had the images in PSD initially but they were too massive so creating catalogs with them was prohibitive.
    If not possible to do a batch, what would be the best (easiest) and fastest way to do it? I'm thinking that maybe creating some template where an oval shape the size of the head can help create consistency of the size of the person and a line that helps set up the distance from the bottom?
    I so appreciate any help you have to offer. Part of my problem is that I don't know what these processes are called so I don't even know what to search for. If you can even name the actions that I need, it would be of great help. I already paid a designer to do the extraction and they were supposed to do this formatting as well and they didn't so my budget is shot. I'm hoping that if I understand what the steps are, I can do them myself.
    Thank you!

    If you download my crafting actions package you can record an action that uses one of my plug-in scripts to do that process. You could then batch that action and process your 500 png image files.
    Crafting Actions Package UPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Example
    Download
    Step 1 Select layers transparency
    Step 2 Copy
    Step 3 Paste
    Step 4 Select all
    Step 5 Align Layer s to selection vertical center
    Step 6 Align Layer s to selection horizontal center
    Step 7 Select bottom Layer
    Step 8 delete current layer
    Ste9 9 Fille>Automate>AspectRatopSelection... In the dialog set 1 1 ratio center rectangle replace selection feather 0
    Step 10 Image Crop
    Step 11 File Automate>Fit Image.  In dialog enter width and height 800
    Step 12 Image size in the dialog uncheck Resample and enter 300 in the resolution field.
    I'm sure the should work you mane not need the copy paste and it depends on how Photoshop treats the PNG layer the canvas size or just the pixels.
    This may also work
    Step 1 Select all
    Step 2 Align Layer s to selection vertical center
    Step 3 Align Layer s to selection horizontal center
    Ste9 4 Fille>Automate>AspectRatopSelection... In the dialog set 1 1 ratio center rectangle replace selection feather 0
    Step 5 Image Crop
    Step 6 File Automate>Fit Image.  In dialog enter width and height 800
    Step 7 Image size in the dialog uncheck Resample and enter 300 in the resolution field.

  • Need help with XtremeGamer and

    Can someone from support or other knowledgable peeps help me identify what exactly is going on with my soundcard, as well as answering my question about sound quality, ?or direct my post to the relevant thread, Im sorry for the long post I will try to keep it as small as possible with the relevant information:?SB0730: Sound Blaster X-Fi XtremeGamerXP SP2: Basic/Fresh install with latest updates(no other software)Sennheiser PC6: Headset + MicLogitech: 2. Speakers
    ?)?[color="#0033ff">Is the 'sound?quality' the same for the '0-pin front panel connection' as the backplate connection, basically?is their any disadvantage to?plugging my headset + mic into the front panel of my PC, as opposed to plugging it into the backplate of the card. [color="#0033ff">?[color="#0033ff">[color="#000000"]2) [color="#3366ff">Here is a description of my card problem in order of occurence, is this?a driver issue?(I hear that there are new beta drivers being released?)?or do I need to RMA:?a) Installed drivers from disk, mic didnt work?and had to re-install Windows in the endb) Downloaded and installed SBXF_PCDRV_LB_2_09_0007.exec) Mic?didnt work so re-installed Windows and this time used Microsoft drivers, which seemed more stabled) The mic?worked fine with MS drivers, with headset connected to backplate and speakers connected to seperate Karajan audio module/card, even though sometimes the mic mute coudnt be unticked it still worked somehow after lots of messing with sound settings in Windows control panel?...then?e) While attempting to attach my speakers to the XtremGamer, I disabled the Karajan Module in the BIOS, attached XtremeGamer front panel connectors?and re-installed windows.f)?Connected the speakers and?installed SBXF_PCDRV_LB_2_09_0007.exeg) Mic problems, no mic sound, cant untick mute as before, cant turn down mic volume or if you can turn it down, the mic spookily turns itself back up right before your eyes, all my usual tweeking of Windows sound control panel to no avail, the hardware test will detect the mic once in 5 tries, with terrible sound quality and then eventually cuts out. doesnt make any differnec having the mic/speakers in the front/back panel

    DOUBLE POSTING!!!
    thanks again to flounder and swapnaja for your help!
    here's the code i ended up using, it's a bit sloppy, but it works!
    public static int magicNumber(String userName, int yearOfBirth ) throws Exception
    int      firstNumber,
                        secondNumber,
         thirdNumber,
         fourthNumber,
         hundred,
         ten,
         magicNumber;
    firstNumber = yearOfBirth/1000;
    hundred = yearOfBirth%1000;     
    secondNumber = hundred/100;
    ten = hundred%100;     
    thirdNumber = ten/10;
    fourthNumber = ten%10;
    magicNumber = firstNumber + secondNumber + thirdNumber + fourthNumber;
    hitEnter();
    return magicNumber;
    }

  • I need help with repaint() and validate() or something else im not aware of

    Im a teacher and im trying to make educational games for my students. This is a simplified code of something i want the applet to do. When the JButton is pressed i want the interior panels to change. In this case JPanel pan3 is my main panel and i want to be able to switch between JPanel pan1 and JPanel pan2 by pressing either [ JButton 1 ] or [ JButton 2 ].
    What is happening in my code here when i press one of the buttons is that the interior panel will change the first time but not the second time, plus it will freeze up.
    Here is the code if someone can help me.
    import java.awt.*;
    import javax.swing.*;
    public class PanelApplet extends JApplet
         public void init()
              Panelswitch ps=new Panelswitch();
              ps.pan3.add(ps);
              ps.paneBuilder();
              getContentPane().add(ps.pan3);
              resize(500,500);
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class Panelswitch extends JPanel implements ActionListener
         public static Panelswitch pan1=new Panelswitch();
         public static Panelswitch pan2=new Panelswitch();
         public JPanel pan3;
         public Panelswitch()
              pan3=new JPanel();
              pan3.setLayout(new GridLayout(1,1,5,5));
         public static final String ONE="ONE";
         public static final String TWO="TWO";
         JButton one=new JButton("one");
         JButton two=new JButton("two");
         JLabel oneLabel=new JLabel("One Label");
         JLabel twoLabel=new JLabel("Two Label");
         public void paneBuilder()
              setLayout(new GridLayout(3,1,5,5));
              add(one);
              one.setActionCommand(ONE);
              one.addActionListener(this);
              add(two);
              add(oneLabel);
              two.setActionCommand(TWO);
              two.addActionListener(this);
         public void paneBuilder2()
              setLayout(new GridLayout(1,3,5,5));
              add(twoLabel);
              add(one);
              one.setActionCommand(ONE);
              one.addActionListener(this);
              add(two);
              two.setActionCommand(TWO);
              two.addActionListener(this);
         public void actionPerformed(ActionEvent e)
              // Im trying to make this take down panel 2 and replace it with panel 1
              if(e.getActionCommand().equals(ONE))
                   pan2.setVisible(false);
                   pan3.removeAll();
                   pan3.setLayout(new GridLayout(1,1,5,5));
                   pan1.paneBuilder();
                   pan1.setVisible(true);
                   pan3.add(pan1);
                   pan3.validate();
                   pan3.repaint();
                   System.out.println("one");
              // Im trying to make this take down panel 1 and replace it with panel 2
              if(e.getActionCommand().equals(TWO))
                   pan1.setVisible(false);
                   pan3.removeAll();
                   pan3.setLayout(new GridLayout(1,1,5,5));
                   pan2.paneBuilder2();
                   pan2.setVisible(true);
                   pan3.add(pan2);
                   pan3.validate();
                   pan3.repaint();
                   System.out.println("two");
    Thanks for looking

    Here's some sample code:
    import javax.swing.JPanel;
    import javax.swing.JLabel;
    import javax.swing.JFrame;
    import javax.swing.JButton;
    import java.awt.BorderLayout;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    public class SwapFrame extends JFrame implements ActionListener {
      private JPanel firstPanel = new JPanel ();
      private JPanel secondPanel = new JPanel ();
      private JPanel buttonPanel = new JPanel ();
      private JButton addFirstJButton = new JButton("Foo");
      private JButton addSecondJButton = new JButton("Bar!");
      private Container frameContainer = null;
      public SwapFrame() {  // With JApplet, put this in your 'init()' method.
        // Frame specific.
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setSize(new Dimension (400, 400));
        firstPanel.setLayout(new BorderLayout());
        firstPanel.add(new JButton ("Foo"), BorderLayout.CENTER);
        secondPanel.setLayout(new BorderLayout());
        secondPanel.add(new JButton ("Bar!"), BorderLayout.CENTER);
        buttonPanel.setLayout(new GridLayout(1, 2));
        buttonPanel.add(addFirstJButton);
        buttonPanel.add(addSecondJButton);
        addFirstJButton.addActionListener(this);
        addFirstJButton.setPreferredSize(new Dimension (100, 48));
        addSecondJButton.addActionListener(this);
        addSecondJButton.setPreferredSize(new Dimension (100, 48));
        frameContainer = getContentPane();
        frameContainer.setLayout(new BorderLayout());
        frameContainer.add(firstPanel, BorderLayout.CENTER);
        frameContainer.add(buttonPanel, BorderLayout.SOUTH);
        // Show application.
        this.validate();
        this.setVisible(true);
      public void actionPerformed (ActionEvent e) {
        if (e.getSource() instanceof JButton && ((JButton)e.getSource()) == addFirstJButton) {
          frameContainer.remove(secondPanel);
          frameContainer.add(firstPanel, BorderLayout.CENTER);
          this.validate();
          this.repaint();
        } else {  // There can only be two buttons...
          frameContainer.remove(firstPanel);
          frameContainer.add(secondPanel, BorderLayout.CENTER);
          this.validate();
          this.repaint();
      public static void main (String []args) {
        new SwapFrame();
    }Regards,
    Devyn

  • Need help with part of my code

    this code is taken from a News server i am making...
    // process connection with client
       private void processConnection(String[][] texts) throws IOException
         Newslist = new ArrayList();
         //output.getTexts;
        for (int i = 0; i < texts.length; i++) {
                System.out.println(texts[0]+ "" + texts[i][1]+ "" +texts[i][2] );
    When a client connects to this server the server does a system output of an array in the servers class. Instead of simply out putting these array items to the screen, what code do i need to output them to the client. its a socket connection so im using get streams to handle input and output. I dont know how to send these array info to the client, that is my question
    here is my get stream codeprivate void getStreams() throws IOException
    // set up output stream for objects
    output = new ObjectOutputStream( connection.getOutputStream() );
    output.flush(); // flush output buffer to send header information
    // set up input stream for objects
    input = new ObjectInputStream( connection.getInputStream() );
    displayMessage( "\nGot I/O streams\n" );
    thanks for any help.

    thanks, i used writeObject cause it didnt like write
    for some reason. My next question is how can i make my
    client program read the array and form it own array
    with it.The simplest way is to create the array as the client needs it as send it via writeObject()
    You will be able to do a readObject() at the other end to get the object back.
    My client is currently using its own array of strings
    for reading info, i want to use the servers array
    instead.If you send a custom object, the code for these object(s) will need to be the same on the client and the server.

  • Need help with GetStringUTFChars and JAB

    Please help,
    I want to use the JNI function GetStringUTFChars with JAB (Java Access Bridge), without having to call JNI_CreateJavaVM as no matter what I do, JNI_CreateJavaVM fails. I have JAB successfully loaded, and I have used GetAccesibleFromHWND to get a valid jobect. Is there any way I can go from the jobect to use GetStringUTFChars?
    If not, is the source code availabe for GetStringUTFChars? OR is there an Windows/C++ equivalent available?

    RPhilbrook12, you've reached the right place for information regarding how to suspend your line while you're deployed. Are you being deployed for military purposes? If you have received military orders to relocate for 90 days or more to an area where Verizon Wireless doesn’t provide coverage and you need to suspend your service, you can contact us at 800-922-0204. You will need to be  prepared to provide information from your orders, including where you’ll be stationed and the name and rank of your Commanding Officer. Please be advised that your service can be suspended for up to 3 years for military deployment.
    For more details regarding your options to suspend services, click http://vz.to/1lfmyUI
    LasinaH_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • I am a rookie and need help with max and min values

    Hello all, i am into this intro to java class. my assignment is to write a program that prompts the user for two integers and then prints the sum, difference, average, product , distance (absolute value of the difference) Maximum(largest of the two) and Minimum(smallest fo the two) here is my code so far
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.lang.Math;
    public class Sample4
       public static void main(String[] args) throws IOException
          try // attempt the following
    {           // create the stream to read from
    InputStreamReader istream = new InputStreamReader(System.in);   // create a buffer to hold the stream
    BufferedReader console = new BufferedReader(istream);           // prompt the user
          System.out.println("Enter a number please");              // get input as a string
          String input = console.readLine();                        // convert to an integer
          int num1 = Integer.parseInt(input);
          System.out.println("Enter a number please");              // get input as a string
          String input2 = console.readLine();                       // convert to an integer
          int num2 = Integer.parseInt(input2);
          int sum = num1 + num2;                                    // get the sum of the two inputs
          int difference = num1 - num2;                             // get the difference of the two inputs
          int product = num1 * num2;                                // get the product of the two inputs
          int average = sum / 2;                                    // get the average of the two inputs
          int abs = Math.abs(difference);                           // get the absolute value of the two inputs
              // new section
                 // display the number
          System.out.println("The total sum = " + sum);
          System.out.println("The total difference = " + difference);
           System.out.println("The total product = " + product);
           System.out.println("The total average = " + average);
           System.out.println("The total absolute value = " + abs);
    } // if something breaks, catch the exception
    catch (IOException e)
       System.out.println(e); // displays the exception
       System.exit(1);  // quits the program
    }what will be the right syntax or code to find the MAX and MIN values of two numbers a User Inputs, hope someone can help with this. thank you for your help.

    Thanks alot man, sheesh i do not know why my book
    doesnt give me all the static methods. but i do really
    appreciate your help. peaceA complete list of the java.lang.Math methods can be found at http://java.sun.com/j2se/1.4/docs/api/java/lang/Math.html
    btw,
    max(a, b) == (a > b) ? a : b
    min(a, b) == (a < b) ? a : b

Maybe you are looking for

  • I need a software developer for a plugin for Photoshop

    Basically we need a plugin or macro, etc that will take a graphics module that will affect the rgb separations. Once this is done will merge them into one file and print a negative. Our company is based in San Diego, California. Dan Lieberman Email:

  • Problems in ios 6.1 beta 5! (My iPad 3)

    hi apple, im problems in ios 6.1 beta 5! (In My iPad 3) - sorry if im bad english typing 1.wifi disconected in many times! manually conected in settings wifi repated on! - and in apps for exmple : yahoo massenger or facebook! boom disconected! 2.runi

  • Bootcamp Vista on low/mid-end MacBook ?

    Hi, I plan to buy a MacBook this week-end and I would need just little bit of information about it. My mom (yeah) would like to run Vista on my macbook, so she can start working on it (she teaches windows/office) this summer before she buys a new com

  • HT1782 Other file

    i deleted some of my photos and videos to have more space. after deleting about 10GB, what happened was, "other file" increased it's storage. i don't understand what's happening here. can anyone help me and make me understand how this thing works? th

  • Blank Columns

    Is there a way to add blank columns to a report? Thanks