What's a good way to manage custom schema for DS  5.1?

What's a good way to manage custom schema?
Custom Schema for Object Class and Attributes
The reason I ask this is because there might be a need in the future where I need to export those custome schema into different branded directory server. I just want to make this as painless as possible.
Right now, I thought of 2 options
1) Create my own LDIF file with my custom attributes and object classes, so if one day I need to export to another directory server, I can just copy that custom created LDIF file over. (Will this work?)
2) Create a JAVA application using JNDI. What this Java App. will do is read through a XML file and create those object classes and attributes on-the-fly. (of course, the XML structure will be predefined by me, so that my Java App. will be able to parse through it correctly. Will this work?)
Anymore suggestion? I would want to hear more advices and suggestions.
Also, I assume that will work even with replication. All I need to update is the master server, and the slaves will replicate automatically.
Thank you very much! :)

Demo: I'm using the nul character to represent the end of the word, so that the data structure can represent that "hell" and "hello" are both in the vocabulary:
import java.util.*;
class Node {
    private SortedMap<Character, Node> children = new TreeMap<Character, Node>();
    //0 <= index <= word.length()
    private void add(String word, int index) {
        if (index == word.length()) {
            children.put(Character.valueOf('\u0000'), null);
        } else {
            char ch = word.charAt(index);
            Node child = children.get(ch);
            if (child == null) {
                children.put(ch, child = new Node());
            child.add(word, index+1);
    public void add(String word) {
        if (word == null || word.length()==0)
            throw new IllegalArgumentException();
        add(word, 0);
    public String toString() {
        return children.toString();
public class Example {
    public static void main(String[] args) throws Exception {
        Node root = new Node();
        root.add("hello");
        root.add("how");
        root.add("who");
        root.add("hell");
        System.out.println(root.toString());
}

Similar Messages

  • What's the best way to manage Apple IDs for multiple devices?

    Hi,
    We have
    a shared Macbook air
    a shared iPad
    my iPhone
    his iPhone
    We want to put one ID on the Macbook and iPad that we can use to have the same iMessage on both and that we can put a card on and use in the iTunes store etc.
    We also want to have our own iMessages on our iPhones, plus be able to use the account with the cards on them to purchase and share across devices...
    What's the best way to manage them all?

    Welcome to the Apple Community.
    iTunes is straight forward, just use the same ID on all of them.
    What exactly do you want to see in messages on the Mac and iPad, messages combined from each of your phones or a different account just for both of you.
    You should think about what you want in calendars, contacts etc, on your shared devices.

  • What's a good way to do a thread dump into a separate file

    What is a good way to do a thread dump automatically into a separate file.
    Example. I run a script to do the thread dump, but unfortunetly, it goes into my stdout log file with the rest of my weblogic errors.
    Any ideas? I want it in a separate file when I run my script?

    Do a Google search on "Drobo S" "benchmark."  I don't have a Drobo S, only the regular Drobo.  But here's a guy who tested one on Windows:
    http://mansurovs.com/drobo-s-review-usb-3-0-2nd-generation
    This one has it a bit faster:
    http://the-gadgeteer.com/2011/12/31/drobo-s-storage-array-review/
    Do read up on a few reviews of it, and be absolutely clear that interface speed (i.e. eSATA versus Firewire versus Thunderbolt) is NOT the same as the performance of the system.  The Drobo cannot keep up with any interfaces... at least the Drobo and the Drobo S cannot.
    I am not using the FS model which is a NAS.  I am using the plain old "Drobo" which is slower than the Drobo S, but that's not to say that the Drobo S is fast, because it is not.
    The Drobo in theory is really attractive: Dead simple to manage, can mix and match drive sizes, offers you some data protection, etc.  However do note that protected storage is not, in and of itself, a backup.  You need other backups besides just the data on the Drobo.  And, because it's so slow, it's really not a great fit for photo storage.  See this review from a guy who used to think the Drobo was great for that and then appended his review:
    http://www.stuckincustoms.com/drobo-review/
    To be as clear as possible, IMO the BEST backup strategy with something like Aperture (so long as your managed Aperture library is of a manageable size, like < 800 GB), is to get a few small portable Firewire 800 drives and keep vaults on each one.  They are great because they are easy to use, to have with you, are bus powered, and you WILL offsite them.

  • What is best way to manage external storage for 160 GB Tiger iMac

    Unfortunately I bought my 160 GB G5 a month before the Intel iMacs came out. I never thought the teens would take to movie making the way they have. I am constantly at 150 GB plus and have filled a 300 GB Maxtor external with a whole system backup image and then a whole boatload of iMovie files. I have purchased a new 500 GB WD, but is still unopened. I have also purchased but not installed Leopard. What is the recommended way to manage the external storage of all of my video - they want to make more movies! Would Time Machine work by keeping movies on for a couple of weeks and then deleting so I would have access through that interface? Help, I can't afford a newer iMac yet.

    If they make movies, you will eat space. Be grateful, because if they get real good, they will be able to buy you a room full of storage. LOL.
    Seriously, you do have a problem. Even though you could exchange the internal for a much larger drive, they will keep filling them. Film real estate is large. Just keep daisy chaining till you reach your tolerance limit, and if they want too make a movie after that, burn any you must delete to DVD, and then erase it.
    Of course, remember, any file that is not at least 2 copies is at risk. You may want to burn some of those to DVd as backups, anyway. DVD's are very cheap.

  • What is the proper way to manage movies in iTunes?

    I've just been given a new video iPod, and am now considering importing movies into iTunes so that I can have them on my iPod. What I have is a bunch of MPGs (e.g., family movies from a camcorder, etc.); but I noticed that the iPod won't play them, presumably because they're not MP4 format. I know I can convert them all to MP4 with iSquint or a similar utility. But I want to keep the full-resolution versions in iTunes so that I can display them on a bigger screen as well. So, what is the right way to manage this - do I really need to keep and have in iTunes 2 versions of every movie - one scaled down for iPod as MP4, and one in original resolution? Or is there a better way?
    Thanks in advance,
    Mike

    I think two versions is probably the only way. At least the MP4 versions will be small so shouldn't use up much of your hard drive space.
    By the way, with the MP4 versions that go on your iPod, try hooking your iPod up to your TV set and setting the TV Out option to ON and with the proper AV cable, you should still be able to see them on the big screen. Try it out and see how it looks.
    Since you have a camcorder, you might already have an AV cable you can use. See here...
    Getting the Video out of Your New iPod--for Cheap!
    http://www.oreillynet.com/pub/a/mac/2005/11/18/video-ipod.html
    Patrick

  • What's the best way to manage movie resolutions with iTunes/iPod

    I've just been given a new video iPod, and am now considering importing movies into iTunes so that I can have them on my iPod. What I have is a bunch of MPGs (e.g., family movies from a camcorder, etc.); but I noticed that the iPod won't play them, presumably because they're not MP4 format. I know I can convert them all to MP4 with iSquint or a similar utility. But I want to keep the full-resolution versions in iTunes so that I can display them on a bigger screen as well. So, what is the right way to manage this - do I really need to keep and have in iTunes 2 versions of every movie - one scaled down for iPod as MP4, and one in original resolution? Or is there a better way?
    Thanks in advance,
    Mike

    Welcome to the Apple Community.
    iTunes is straight forward, just use the same ID on all of them.
    What exactly do you want to see in messages on the Mac and iPad, messages combined from each of your phones or a different account just for both of you.
    You should think about what you want in calendars, contacts etc, on your shared devices.

  • What are the good ways to send a big file( 20MB-100MB) file to my friend?

    what are the good ways to send a big file( 20MB-100MB) file to my friend?
    Thanks in advance

    if this is with the internet, iChat is probly your best bet,
    but if you just want a transfer,
    plug a firewire into both of your computers, shutdown one of them, hold "T" and press the power button, the restarted computer should pop up as an external drive on the second computer.

  • What is the best way to manage photos - Dropbox (with sync), Facebook (with sync), iPhoto, etc.?

    With so many cloud based and wireless syncing services, I'm lost as to the simplest way to keep photos sync'd as well as backed up. My dropbox is currently syncing all photos I take with my iphone, but in an overall folder called CAMERA UPLOADS, so they are uncategorized. I upload pics to facebook, which facebook also has a sync photos feature, but I don't necessarily want all photos uploaded to facebook. What has worked best for everyone so that there aren't a ton of dupicate photos everywhere, and multiple syncs of the same photos?
    Also, what is the best way to manage my iPhone photos generally? I'm never sure if I delete a photo from my phone, does it delete it on my computer via iCloud? Sometimes I just take a picture to send to a friend that I don't need to keep, while others are ones I want to sync to my computer. Can I control when deleting that it be deleted everywhere or just on the device? And alternately, can I choose certain photos not to sync via iCloud?
    iCloud makes me nervous. Once when I wanted to place all photos of my pup into a folder, I selected the photos on my iPhone and accidentally clicked delete instead of move. No big deal, I figured they'd be at home sync'd on the cloud. But since I'd deleted them on my phone, the cloud deleted them on my home computer too and the photos were lost.

    I am presuming that we cannot share downloaded apps and music between accounts because of the copyright issue,
    Though I'm no copyright lawyer, as long as it's within a household, you can share content among users. Such sharing is, absent specific language preventing it not present in the iTunes Store terms of use, generally considered to be "personal use". So you can share apps and music amongst your users on your computer and with their devices. You just can't give any of that content to friends or relatives who don't live with you.
    What I am not clear on, it making sure that this appears in each itunes account - is it easy to find the file storage folders that match the itunes accounts and what would these be?
    The iTunes library and files are by default in a user's Home/Music folder. But you don't have to find the folder; in fact putting a file into the folder yourself won't add the file to iTunes. Just drag the file into the iTunes window. iTunes will copy it to the correct location.
    Regards.

  • What is the best way to manage my iPhoto, which is taking up too much space on my MacBook Pro?

    What is the best way to manage my iPhoto, which is taking up too much space on my MacBook Pro?
    Specifically, I'd like to keep some of my favorite pictures on the laptop while moving the rest to an external hard drive. Is there a way to tag just a few pictures inside an event/album as "favorite", while storing the rest in an EHD, but still keep them connected to the same event/album? I'd like to have just the favorite pictures on the laptop, but when I have the EHD connected,  be able to view all my pictures in the same place, and not have to browse through separate hard drives. Ideally, whether or not a picture is designated as "favorite" will determine where it resides.
    Is this at all possible?
    I have only 7 GB left on my HD and I'm desperately needing a solution!
    Thanks!

    You need two libraries to do this. One on the external with all your Photos. One on the internal with a subset - your favourites. You do it this way to make backing up easier - that is, back up the library with everything, so you're only backing up one.
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    Now you have two full versions of the Library.
    3. On the Internal library, trash the Events/albums/photos you don't want there
    Now you have a full copy of the Library on the External and a smaller subset on the Internal
    Some Notes:
    As a general rule: when deleting photos do them in batches of about 100 at a time. iPhoto can baulk at trashing large numbers at one go.
    You can choose which Library to open: Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    You can keep the Library on the external updated with new imports using iPhoto Library Manager

  • What is the best way to manage multiple ipods using the same itunes?

    Hi Everyone
    i am trying to manage three different ipods through the one Itunes, all with very different tastes, not sure if I am doing it the best or easiest way so does anybody have a simple solution on what you're supposed to do, to keep it all simple!
    Cheers
    Liv

    If you have created a new Windows user account you need to log out and then log back in with your original user name. By default each Windows profile will have an independent iTunes library.
    If instead you managed to create a new library within the same profile. click the icon to start iTunes and immediately press and hold down the shift key, keep holding until asked to create or choose a library. Click Choose and navigte back to your original which should be at <User's Music>\iTunes.
    Your question as posed was:
    What is the best way to manage multiple iPods using the same iTunes {library}?
    in which case Selected Playlists is probably the best approach. Simply create a playlist for each device, Alice's iPod, Bob's iPhone etc. and sync the device with the appropriate list.
    tt2

  • What is the best way to manage 5 users and 6 devices? We dont all want the same merged contacts, we dont all want the same calendar notes, music, pics etc etc.

    What is the best way to manage 5 users and 6 devices? We dont all want the same merged contacts, we dont all want the same calendar notes, music, pics etc etc.

    As long as it is pointed to iTunes it will be accessible via home sharing on Apple TV.
    http://support.apple.com/kb/HT1751?viewlocale=en_US&locale=en_US
    If these are commercial DVD's we can't comment on any conversion process.

  • What is the best way to manage photo's with multiple login accounts?

    There are three people in my household and each has their own login into the computer. I also have and external drive.  Space is becoming short on the computer, so I want to move all my photos and music to the external drive.  I have moved all the music files and folders to the external drive and then each user has just updated their individual iTunes folders, pointing to the external drive.
    However, what is the best way to manage photo's? Do I do this same process or is there another way? I don't want any music or photo files on the computer's hard drive at all if it can be avoided.

    I am presuming that we cannot share downloaded apps and music between accounts because of the copyright issue,
    Though I'm no copyright lawyer, as long as it's within a household, you can share content among users. Such sharing is, absent specific language preventing it not present in the iTunes Store terms of use, generally considered to be "personal use". So you can share apps and music amongst your users on your computer and with their devices. You just can't give any of that content to friends or relatives who don't live with you.
    What I am not clear on, it making sure that this appears in each itunes account - is it easy to find the file storage folders that match the itunes accounts and what would these be?
    The iTunes library and files are by default in a user's Home/Music folder. But you don't have to find the folder; in fact putting a file into the folder yourself won't add the file to iTunes. Just drag the file into the iTunes window. iTunes will copy it to the correct location.
    Regards.

  • What is the best way to manage the file space given how much GB the video clips use up?

    I just downloaded a years worth of video off my HD camera.  I took up 125 GB on my hard drive.  What is the best way to manage this content going forward as there will be a lot more video to come in future years with small children!

    rule of thumb:
    SDef ~13GBs/h
    HDef ~30-40GBs/h ...
    latest investment of mine:
    ext.HDD, usb2 (=I have no trouble using usb2 for editing my short projects), 1.5TB=70€  ...
    ... which adds to ~4.2TB for my hobby, incl. back-up drives ...

  • What is the best way to manage tabIndex

    Hallo. I am trying to understand what is the best way to manage the taborder inside flex. If, in my application there are several account and thus several states (1 for each account) i can prepare my states so that some components are visible and some not.. The problem is that, for each state the taborder can change even if the objects are the same.. What is the best way to manage tabIndex relatively to the different states in which the objects are?
    Thx
    Max

    I liked tab order very much (top to bottom, left to right) ..but because of the problem i had and you answered here: 
    http://forums.adobe.com/thread/971994?tstart=0
    I cannot use tab order because, in that group that focus goes from object n to 1 and the only way to solve the issue is to set tabIndex manually.. Is there another way??..  It seems like tabIndex setted manually has precedence on native taborder so i think i have to manage all the state with manual tabIndex isnt'it??.. Or maybe ia have another way?
    Thx for the answer
    Max

  • What is the best way to manage tasks?  I have moved from outlook and only have mail and ical

    What is the best way to manage tasks.  I have moved from a pc with outlook and have lost 'tasks' in that programme.  Do I have to rely on ical or can I download an app to manage business tasks?

    iCal does have reminders but its implementation of tasks is pretty wimpy. There are a number of programs that are better geared to the job. I was a level 4 procrastinator until I discovered Getting Things Done and for me Things is perfect. It lets me handle projects which are dependent upon multiple tasks in a no-nonsense easy fashion. Much less expensive and really not much more than a list maker is Wunderlist. Thankfully there's a ton of shareware offerings - check out MacUpdate.com and see what works for you.

Maybe you are looking for