A sense of style: @OneToMany or @ElementCollection?

Hello, everybody!
First of all, I would like to say that I already posted this question in another forum:
[https://forum.hibernate.org/viewtopic.php?f=1&t=1007832]
but as I haven't got any answer from there I'm posting it here too in the hope that I find one, as this is very important to me.
In JPA 1.0 I could map the collection association to DocumentSubject (only accessible through the Document entity) like this:
@Entity
@Table(name = "SUBJECTS")
public class Subject
    @Id
    @Column(name = "SUBJECT_ID")
    private int id;
    private String description;
    // Getters and setters...
@Embeddable
public class DocumentSubjectId implements Serializable
    @Column(name = "DOCUMENT_ID")
    private int documentId;
    @Column(name = "ITEM_ID")
    private int item;
    // Getters and setters, equals and hashcode...
@Entity
@Table(name = "DOCUMENT_SUBJECTS")
public class DocumentSubject
    @EmbeddedId
    private DocumentSubjectId id;
    @ManyToOne
    @JoinColumn(name = "SUBJECT_ID")
    private Subject subject;
    @ManyToOne
    @JoinColumn(name = "DOCUMENT_ID", referencedColumnName = "DOCUMENT_ID", insertable = false, updatable = false)
    private Document document; // See below for the Document class...
    // Getters and setters...
@Entity
@Table(name = "DOCUMENTS")
public class Document
    @Id
    @Column(name = "DOCUMENT_ID")
    private int id;
    @OneToMany(mappedBy = "document", cascade = {CascadeType.ALL})
    private List<DocumentSubject> subjects = new ArrayList<DocumentSubject>();
    // Getters and setters...
}In JPA 2.0 I can get rid of the DocumentSubjectId class, transform DocumentSubject in an @Embeddable and use the @ElementCollection annotation, like this:
@Embeddable
public class DocumentSubject
    @Column(name = "ITEM_ID")
    private short item;
    @ManyToOne
    @JoinColumn(name = "SUBJECT_ID")
    private Subject subject;
    // Getters and setters...
@Entity
@Table(name = "DOCUMENTS")
public class Document
    @Id
    @Column(name = "DOCUMENT_ID")
    private int id;
    @ElementCollection
    @CollectionTable(name = "DOCUMENT_SUBJECTS", joinColumns = @JoinColumn(name = "DOCUMENT_ID"))
    private List<DocumentSubject> subjects = new ArrayList<DocumentSubject>();
    // Getters and setters...
}So, my question is: what is the recommended to use in this case: relationships to entity classes, like in the first case, or collection of embedded classes, like the second case? Note that I will never access in my application the DocumentSubject separately from the Document class. It really belongs to the Document class. What would you use in JPA 2.0, and why?
Thank you in advance.
Marcos

You cannot increase perceived loudness without sacrificing dynamics. You have to decide just how much you are willing to sacrifice.
That being said, my fave tool out of the ones your mentioned is Izotope Ozone. Ozone has quite a bit more to it than a limiter and multi-band compressor.
jord

Similar Messages

  • New to itunes.

    I am forcing myself to use iTunes for a few weeks, just to see what all the hype is about and i am having a problem. I am in my music library in list view with the browser open like this:
    http://i9.photobucket.com/albums/a93/canada2113/Picture1-38.jpg
    Heretics and Killers is now playing, but what if i want to play Blindfolds Aside next? I tried dragging Blindfolds Aside up but it didnt do anything. It seems i can only arrange tracks via the built-in columns. Is this fixable?

    i am just using the playlist to do everything because it actually works in a way that makes sense.
    So I'm not too sure what your problem is then?
    the incredible god-like app it seems to be hailed as
    Well, inside your head maybe. Actually, it is "just" an app, that started out life as a music organiser for Macs, then grew to synchronise with iPods, then branched out into movies and TV. As it has grown it has become more and more like a full-fledged media player (yes, like Windows Media Player, dare I say it? ... only much more harmonised with the hardware because that's what Apple does best. It's no fault of Windows, but it does have to harmonise with an infinite variety of hardware and devices, which means it can never function as efficiently with ALL of them). And some of us (quite a lot actually) prefer the sense of style that comes with Apple hardware and software, and are willing to put up with other minor irritations and failings along the way.
    As for "god like", do you think these forums would even EXIST if everything worked perfectly all the time? Forgive me if I'm wrong, but I think you have come here determined to find fault with iTunes. Well hey! we can all do that, we all have things we would like iTunes to do and find it doesn't. But for me, it is the best compromise between style, efficiency and functionality that I have seen. I do NOT however expect everyone else to agree with me.

  • Is Word standard really so important?

    Hi everybody,
    It was a long time I was looking for a good word processor running on Mac OS X, when iWork '05 was delivered. I bought it without testing it's applications because it was an Apple software and 'cause I really think that Apple's applications run better than the others under the Apple operating system. Then I used Pages comparing it with Mellel, Nisus Writer Express and of course Word.
    It was an Apple application concerning the ease of use and the approach to the different functions, but it seems to me that everybody (even in this discussions space) tends to compare always Pages to Word's functions. Also Apple uses to promote the Pages's compatility with Word. It is clear that Word is the standard in word processing, that this application exists for more than 20 years and that 99,9% of "writers" use it. But, and here my question, do you really think that Pages can grow year by year only adding function that make it more similar to Word. I hope that Apple will add in the next future some innovative way to productivity basing on it's ability to "create the future" (see for example iTunes or iPhoto), otherwise the switch will fail...
    Let me know what you think about this.
    Daniele

    Hullo Daniele_A:
    Well you just stick to your guns, there: I couldn't agree more.
    Pages is new and different - with a real sense of style. It must never become bloated as Word was, and I think many specialist requirements might better be handled with Apple or Third Party plug-ins to ensure that this never happens to it. With Word you had to plough through a whole heap of guff you'd probably never use to get anything done at all, and then the wretched thing seemed to impose its own corporate look on anything you tried to do.
    If it ever became a standard, it was only a de facto one - and frankly I think it was rubbish. But maybe I'm biased because I had to use it with Windows, and that kept crashing between auto-saves, just as you had the right wording - which of course you would forget while you re-booted the whole caboodle. Still no thanks, never again, not even on a Mac
    So Pages has a few teething problems (time they were dealt with, Apple) and everybody's got wish-lists for it. But bottom line, it's beautiful. A joy to work with, and lets you get on with it. Word? The word is Word is history.
    As to "writers" - well publishers had better start accepting documents in Pages, or Pages will let us pass them by. Pages is a writer's liberation; neither more nor less. We can see how our work will look in print, and stipulate what we want done with it. I predict it will revolutionise writing and publication.
    Cheers.
    iBook G4   Mac OS X (10.4.4)  

  • Adjust page for IE7

    I have the following pages:
    http://www.salleboise.com/club_tournaments.cfm
    http://www.salleboise.com/confirmed.cfm?tid=1
    Which should appear positioned correctly in FF and other
    versions of IE,
    but in IE7, the text, starting at Spring Fling 2008 -
    Confirmed Entries
    on the confirmed.cfm?tid=1 page, is lower in IE7.
    What CSS code do I need to change/add to make it appear the
    same in IE 7
    as it does in FF, etc?
    Also, how do you make it conditional based on the browser
    type, so only
    IE7 will get the affected CSS code???
    Thanks!

    "Steve Grosz" <[email protected]> wrote in
    message
    news:[email protected]...
    > Would that be the same change then for *ALL* the pages,
    or just the ones
    > that are having this problem??
    IMO, it is just a better construct as first and last row
    contain nothing
    else than your 10px images.
    So it makes sense to style that middle row, taking into
    consideration the
    extra 20px you'll get for the overall height of the table
    (top + bottom row
    used for rounded corners).
    As a side note, since you're dealing with a fixed width, you
    could use the
    first element and the container itself to create these
    rounded corners. That
    way you'd eliminate *a lot of markup*.
    If you prefer to stick with what you have now, you may want
    to use a sprite
    method to create your 4 rounded corners using a single small
    image (4 times
    less HTTP requests) used as background-images.
    Thierry
    Articles and Tutorials:
    http://www.TJKDesign.com/go/?0
    Keep your markup *clean* with these DW extensions and
    scripts:
    http://www.divahtml.com/products/scripts_dreamweaver_extensions.php
    > "Thierry" <[email protected]> wrote in message
    > news:[email protected]...
    >> "Steve Grosz" <[email protected]> wrote
    in message
    >> news:[email protected]...
    >>>I have the following pages:
    >>>
    >>>
    http://www.salleboise.com/club_tournaments.cfm
    >>>
    http://www.salleboise.com/confirmed.cfm?tid=1
    >>>
    >>> Which should appear positioned correctly in FF
    and other versions of IE,
    >>> but in IE7, the text, starting at Spring Fling
    2008 - Confirmed Entries
    >>> on the confirmed.cfm?tid=1 page, is lower in
    IE7.
    >>>
    >>> What CSS code do I need to change/add to make it
    appear the same in IE 7
    >>> as it does in FF, etc?
    >>>
    >>> Also, how do you make it conditional based on
    the browser type, so only
    >>> IE7 will get the affected CSS code???
    >>
    >> Hi Steve,
    >> Try this:
    >> Remove the height set on the table (the white area)
    and instead set a
    >> height on the second TR of that same table
    >>
    >> HTH,
    >> --
    >> Thierry
    >> Articles and Tutorials:
    http://www.TJKDesign.com/go/?0
    >> --
    >> Keep your markup *clean* with these DW extensions
    and scripts:
    >>
    http://www.divahtml.com/products/scripts_dreamweaver_extensions.php
    >
    >

  • Looking for freelance talent

    We are looking for brilliant freelance web designer with a
    great sense of style and design who can execute their own
    production. Must have a well-developed command of flex architecture
    as well as full action script capabilities.
    Contact:
    B. Brewer
    [email protected]
    Ph. 801-298-2134

    I'm not in NYC but I'd be happy to help.
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "ramachan" <[email protected]> wrote in
    message
    news:eid318$t58$[email protected]..
    >I do not know if this is the right place to post this but
    i am lookig for
    > freelance actionscript guys to help me with several
    projects... insteaad
    > of
    > fishing for free advice I would rather share cash and
    have a few regular
    > actionscript guys who would like to be feed regular
    work...
    >
    > I am a freelance designer who is a bit tired of
    pretending to be a
    > developer
    >
    > [email protected]
    >
    > Thank you
    >
    > sorry if this is in the wrong place
    >

  • Itunes Library .itl file in one folder, music in another Itunes makes no sense!

    A while ago I attempted to move one of my libraries to another folder to try to force Itunes to orginise my files in a way that makes sense.   Older versions of itunes apparently used a Music folder and the new one doesn't (or is it the other way around).  So I end up with some files in The Beatles/ItunesMedia/Music/Beatles and other files in Itunes The Beatles/Itunes Mediia/Beatles.  
    I wanted to force Itunes to re-orginize all of the files under which ever system is newer.  I read up and was happy to find tha Itunes had a command to re-orginize and/or consolidate the files.   BUT carrying out this process turned out to be baffling.   It is very unclear what exactly these commands do and how to use them.
    So now I have one folder called The Beatles and another folder called The Beatles ALL.   My .itl file is in The Beatles and all my music is in folders in The Beatles All/
    I tried to fix this and saw some really strange behavior.   When I open my Library and play a song, that song is moved to ANOTHER folder next to the Music folder.   So now I have my itl file in one folder, most of my music in another folder, and two songs in this new folder that itunes just created.   I'm guessing that everytime I play a song itunes will move it to the new folder (Why?)
    If you don't use separate Libraries please don't ask me why I am using separate Libraries.    I have a LOT of Beatles music that is more of a historical collection and I need to keep it separate from the Library of albums that I actually listen too.
    To me itunes behavior is crazy.   Can some one explain it in a way that will make me slap my forehead and say "of course...it makes so much sense!"?   or is it just as bizzare and random as I think?  
    Another approach that I considered was just creating a new library and importing all of those songs.  But I believe I would lose all of my playlists and I have my beatles collection extensively orginized by playlists.
    Help appreciated.
    Mike

    This is an overview of how your library ought to be organized and how you might get it there. I can give specific instructions if you provide more details such as the full locations of the folders you mentioned earlier.
    Make a split library portable
    Here are the typical layouts for the iTunes folders:
    In the layout above, with the media folder (everything in the red box) inside the library folder, the library is considered to be portable. A portable library can be moved from one path to another without breaking the links between the library and the media, and being self-contained is much easier to backup (You do backup, don't you?).
    You can rearrange things to make a split library portable by taking a number of small steps which don't break the library.
    Before you start any media files that are outside of the media folder will need to be consolidated (File > Library > Organize Library > Consolidate Files). If the library is in the old style layout then it should be upgraded to iTunes Media Organization (File > Library > Organize Library > Rearrange files in the folder <Media Folder>) to ensure that iPod Games, Mobile Applications etc. are brought inside the media folder.
    The basic non-fatal manipulations are:
    You can connect to an alternate set of library files by holding down Shift (Win) or Option (Mac) when starting iTunes.
    You can move the library files to a new location as long as the media stays put.
    You can move the library files and the media together if the media folder is a direct subfolder of the library folder.
    If you have already moved/copied the media content from a subfolder of the library folder to a different location then you only need to copy the library files for it to appear as if you have moved the entire library in the way allowed above. I.e. just copy the library files into the parent folder of the media folder.
    You can rename the media folder to iTunes Media (if it isn't already) if the media folder is inside the library folder.
    iTunes (prior to iTunes 11) uses the name of the folder holding the library files as the window title. Having made a library "portable" you may need to take a final step of renaming the library folder to iTunes or, if the library files have ended up at the root of a drive, moving all of the library files and content folders into a new folder called iTunes.
    After each change you need to open, test and close the relevant library before attempting another change. If a change broke the library, undo it or revert to using the previous set of library files.
    In essence all you need to do to make your library portable is copy the library files into the parent folder of the media folder on the external/secondary drive and use the hold-down-shift/option-when-starting-iTunes method to connect to it. Other manipulations may be required to normalize the library so that the library and media folders have standard names.
    tt2

  • How do I use hot spots in the most advanced style?

    My first attempt at Dreamweaver web design.http://www.deer-harbor-stewardship-project.org  . I will be resampling my images and doing a ton of other appropriate modifications but here are some initial questions. How do I use this "plug in" http://mattstow.com/experiment/responsive-image-maps/rwd-image-maps.html#blossom feature for my fluid grid responsive image map. How can I make my hot spots turn up little boxes with a photo, an illustration, or informatory text? How do I get ride of the spaces between divs? Sorry if I have asked too many questions. I better read the forum user rules if you have them. thanks for reading this. endurobob

    Murray *ACP* wrote:
    Anyhow, it makes no sense to put image tags within container tags meant to convey semantic meaning to their contents since an image has no semantic meaning.  So try changing this -
    <div id="header">
          <h1><img src="_images/title_scan.jpg" alt="newtitle"></h1>
    to this -
    <div id="header">
          <img src="_images/title_scan.jpg" alt="newtitle">
    I completely agree with this. However, if having an image as a heading was important (if you styled it in a way you can not with CSS) you could always code the image into the heading through CSS.
    Something like:
    <h1 class="heading">This is a heading</h1>
    h1.heading {
    margin:0;
    width:??;
    height:??;
    background: #000 url(ImageURLHere) no-repeat;
    text-indent:-9999px; /* This will move the text of the heading off-screen */
    The 0 margin on the style should clear up the gap as well.

  • (new to scripting) Only allow certain paragraph styles to break to next column/page

    Hi all,
    As stated, I'm very new to scripting. I've done a few small scripts to automate Photoshop tasks and such. I'm in the process of trying to learn Javascript as much as possible, with the hope of bringing about more efficiency for our small production department. It's a daunting task, but I'm trying my darnedest.
    One of the number one goals I have is the find a way to automate pagination of weekly transaction records. These records run between 32 to 48 pages normally, with each page having 5 columns. Creation of these pages is very systematic, so it would seem that this process should be able to be automated, but there are some challenges I'm having a hard time thinking about how to attack.
    One of the key tasks needing to be figured out is getting the records to go in with headings and subheadings always starting at the top of a page/column. Just about all the copy comes in with predetermined paragraph styles, so a script should easily be able to search for instances of each style. What needs to eb accomplished is only allowing the flow of copy to break on certain styles and not others ... (counties, towns, etc.)
    For example: if you have the following  ...
    Countyland <styled "county">
    Utopiatown <styled "town">
    46 Appletree Lane ...... $500,000  <styled "listing">
    Sold by: Some Guy   <styled "listing">
    Bought by: Other Guy  <styled "listing">
    Mortgage: This Bank  <styled "listing">
    Date: 12/14/11  <styled "listing">
    Dystopia Village <styled "town">
    47 Orangeplant Road ...... $400,000  <styled "listing">
    Sold by: Some Guy   <styled "listing">
    Bought by: Other Guy  <styled "listing">
    Mortgage: This Bank  <styled "listing">
    Date: 12/14/11  <styled "listing">
    If the two records above were to fall near the end of a column, the break to the next column should NOT occur anywhere except:
    - Before the county (causing the county to start at the top of the next column
    - Before the second town (Dystopia Village, forcing that town to the top of the next column)
    - After both (forcing whatever town/county is next to goto the top of the next column)
    So basically, I need to find a way PREVENT column breaks where they should not occur. Inserting column breaks is one thing (I know how to do that). Prevention is the issue though that confounds me.
    Does anyone have any thoughts of how to achieve such a thing? I know there are "non-breaking space" characters ... is there, or could there be, some kind of a "non-breaking return" character? Or would it be more feasible to test for the paragraph style at the bottoms of columns and insert column breaks in once it finds an appropriate match?
    Am I going about this all wrong?
    Again, any help or suggestions are more than welcome.
    Thanks much.
    ~Nate
    FYI .. using InDesign cs5.5

    I am now wondering about a possible solution. It would be one hell of a challenge for me to figure out how to code it, but I at least need to figure out the theory first, then I'll try to figure out how to code it.
    Again, the issue at hand is preventing column breaks for the "listing" style in the following example. Please note, the number of "listing" lines varies. If the following two entries (in a long list of similar entries) were to be near the end of a column, I'm trying to cause the flow of text to break only before a county style, or a town style (if it's not the first town in the county).  Basically, no breaks in the middle of listings.
    Countyland <styled "county">
    Utopiatown <styled "town">
    46 Appletree Lane ...... $500,000  <styled "listing">
    Sold by: Some Guy   <styled "listing">
    Bought by: Other Guy  <styled "listing">
    Mortgage: This Bank  <styled "listing">
    Date: 12/14/11  <styled "listing">
    Dystopia Village <styled "town">
    47 Orangeplant Road ...... $400,000  <styled "listing">
    Sold by: Some Guy   <styled "listing">
    Bought by: Other Guy  <styled "listing">
    Mortgage: This Bank  <styled "listing">
    Date: 12/14/11  <styled "listing">
    Naomi previously suggested messing with the "keep options" in the styles. This will solve the issue of preventing breaks before listing details start. But it won't help in keeping listing details from breaking, since the number of lines can vary.
    I'm now thinking ... might it be possible to have a script search all copy, looking for the last line of listings, and then apply a second listing style with a different keep option setting? The "normal listing" style would "keep next 1 line". The "last listing" style would not, therefore, allowing a break.
    Here's a map of what I'm thinking: (bear with me on the terrible syntax, this is just for illustrative purposes)
    listingNormal has keep with next 1 line applied
    listingBreak does not keep with next line
    if currentLineStyle == listingNormal
    AND
    style of next line != listingNormal {
    currentLineStyle = listingBreak
    Does this make sense? If so, does this sound feasible?
    Thanks any and all.
    ~Nate

  • Need to add a carriage return in Paragraph styles

    Hi. I am in a muddle. I have a large amount of data from an xml source. I need to quickly add carriage returns appropriately throughout it so that the paragraph styles can be differentiated.I am using tags manually mapped to styles to do this.
    In order to carriage returns am I right in thinking that I can add a GREP style to each para style, and that it will sense the end of the para through the end marker position of each tag? If this is so, what would the GREP expressionlook like to that I can automate locating the end of a tag/para style so that I can add ~b to it?
    Gratefully!

    Hi @chantal_diva arts,
    It seems to be difficult, because you have much more invinsible character than only the xml markers in your document.
    I think one good way could be @obi-wan Kenobis way.
    Perhaps you can upload an example idml on a file hoster of your choise (e.g. xup.in).
    Regardless, you can try the following:
    1. text search:
    <FEFF>
    replace with:
    2. grep search:
    (?<=\b##)(.)
    replace with:
    \r$1
    3. clean document
    grep search:
    #+
    replace with:
    (nothing)  an empty replace field
    Have fun

  • Best-practice for use of object styles to manage image text wrap issues when aiming at both print and EPUB output?

    I have a work-flow question about object styles, text-wrap, and preparing a long document with lots of images for dual print/EPUB output in InDesign CC 2014.
    I am sort of experienced with InDesign but new to EPUB export. I have hundreds of pages and hundreds of images so I'd like to make my EPUB learning curve, in particular, less painful.
    Let me talk you through what I'm planning and you tell me if it's stupid.
    It's kind of a storybook-look I'm going for. Single column of text (6" by 9" page) with lots of small-to-medium images on the page (one or two images per page), and the text flowing around, sometimes right, sometimes left. Sometimes around the bounding box, sometimes following the edges of the images. So in each case I'm looking to tweak image size and placement and wrap settings so that the image is as close to the relevant text as possible and the layout isn't all wonky. Lovely print page the goal. Lots of fussy trade-offs and deciding what looks best. Inevitably, this will entail local overrides of paragraph styles. So what I want to do, I guess, is get the images as closely placed as possible, before I do any of that overriding. Then I divide my production line.
    1) I set aside the uniformly-styled doc for later EPUB export. (This is wise, right? Start for EPUB export with a doc with pristine styles?)
    2) With the EPUB-bound version set aside, I finish preparing the print side, making all my little tweaks. So many pages, so many images. So many little nudges. If I go back and nudge something at the beginning everything shifts a little. It's broken up into lots of separate stories, but still ... there is no way to make this non-tedious. But what is best practice? I'm basically just doing it by hand, eyeballing it and dropping an inline anchor to some close bit of text in case of some storm, i.e. if there's a major text change my image will still be almost where it belongs. Try to get the early bits right so that I don't have to go back and change them and then mess up stuff later. Object styles don't really help me with that. Do they? I haven't found a good use for them at this stage (Obviously if I had to draw a pink line around each image, or whatever, I'd use object styles for that.)
    Now let me shift back to EPUB. Clearly I need object styles to prepare for export. I'm planning to make a left float style and a right float style and a couple of others for other cases. And I'm basically going to go through the whole doc selecting each image and styling it in whatever way seems likeliest. At this point I will change the inline anchors to above line or custom, since I'm told EPUB doesn't like the inline ones.
    I guess maybe it comes down to this. I realize I have to use object styles for images for EPUB, but for print, manual placement - to make it look just right - and an inline anchor seems best? I sort of feel like if I'm going to bother to use object styles for EPUB I should also use them for print, but maybe that's just not necessary? It feels inefficient to make so many inline anchors and then trade them for a custom thing just for EPUB. But two different outputs means two different workflows. Sometimes you just have to do it twice.
    Does this make sense? What am I missing, before I waste dozens of hours doing it wrong?

    I've moved your question to the InDesign EPUB forum for best results.

  • Can I use photoshop text styles and photoshop actions with creative cloud photography?

    I'm really confused by this subscription pricing. If I purchase the $9.99/month, do I get the full desktop app of Photoshop and Lightroom? But I see on this page Products they list something called Photoshop CC that costs twice as much. How is that different from the Creative Cloud Photography?
    My main question is whether I can use photoshop text styles and photoshop actions with Creative Cloud Photography, since I just purchased a bundle that includes these and I want to be able to use them. But I'd also like to understand what comes with all of the various products and how they are different.
    My other question is how is Lightroom different from Photoshop? I have a sense of what you can do in Photoshop but I don't know much about Lightroom at all.
    One more question: the free trial -- is it limited in any way besides the time length? If I do that, will I get a clear idea of all that I will be able to do once I subscribe, or are the functions limited in the trial?
    I tried to just send an email to Adobe to ask these questions but apparently they are not interested in responding to emails from people who are not yet paying customers, so I was directed here. Thanks very much for your help!

    I always like to trot this bit about Bridge once in a while or in the voice of the "Two Bobs" from Office Space,
    "Can you tell us exactly what it is you do around here?"
    What Adobe Bridge does:
    Bridge is the coordinating hub of the Creative Suite. Synchronizing color management settings for all suite programs is done from Bridge, and can only be done from Bridge, to take one important use.
    Bridge displays actual thumbnails of many more file types than Finder or Explorer. It also allows instant play of sound or video files more readily than the native OS file managers.
    Bridge allows direct access to file metadata, to embed copyright information  and keywords where appropriate (e.g., for corporate logo vector and raster files). It also displays the fonts used in an InDesign file, the swatches in an INDD or AI and the output plates (including spot color plates) they use.
    When managing the assets for a design project, Bridge allows quick and simple sorting, rating and custom labeling (with color flash indications) of assets. I can rate images according to whether they are rejects, possibles, for review by client, or approved. The filters built into Bridge allow instant isolation of only the approved images or designs in a folder, only the rejects (for deletion) or only files with certain ratings, no matter how many files it contains. It recognizes aspect ratios, so if I only need a landscape or a 16:9 image in a folder of hundreds of images, I turn off the aspect ratios I don't need.
    Once filtered, the remaining visible files can be selected and copied, moved, or deleted without affecting the rest of the contents of a folder.
    Collections are a massively useful feature. One of my clients is a performing arts center, and in a season we turn out dozens of ads, flyers, brochures, web banners, playbills, billboards and other collateral using the same assets over and over. These assets are organized by artist and/or show on disk, but I set up each season's repeating assets as a Collection in Bridge, so that I just have to open the collection and drag and drop these assets into new INDD, AI, PSD, HTML (in Dreamweaver), FLA or AE projects without having to navigate from folder to folder picking up individual files.
    Bridge's Favorites is another place I stack frequently-accessed folders, such as stock photography, backgrounds, and top-level folders for active projects.
    Assets can be divided into subfolders, but a quick toggle of "Show items from subfolders" exposes all of the assets in a single view while maintaining their organization. I will typically keep AIs, PSDs, EPSs, stock photography and client images in separate subfolders within a project. When I'm ready to start pulling assets into an InDesign layout, I toggle this on and simply drag what I need into the layout.
    Bridge comes with Adobe Camera Raw built in, which is many times faster than using Photoshop to adjust jpegs or tiffs for things like tonal range, white balance, cropping, spotting and sharpening, and is non-destructive.
    One tremendously useful Bridge function for InDesign CS5+ users is the "Show linked files" feature, which opens all the linked files in a layout into a single view, regardless of where they are physically located. I often use this when doing alternative layouts from a client-approved mockup for a campaign, to be certain the same assets are used in each piece, or when creating a motion graphic or interactive piece for the campaign in After Effects or Flash.
    The batch and image processing scripts built into Bridge automate things like creating web-ready small jpegs from multiple images, renaming large numbers of files in place or by copying to an alternative location, creating sets of PSD, png, jpeg or other file types from an assortment of image files, and so on.
    Bridge is so much a part of my daily workflow that on my main workstation I have one monitor dedicated to it almost 100%. Bridge just sits open 24/7, ready for use. I would run at half speed without it, no question.

  • Java style and coding conventions

    Hello All,
    Most of my programming experience is in Java, and as such, I try to conform to the style and coding conventions that are used in all of the Sun tutorials, and to my understanding, the specification. I'm enrolled in my final semester of a bachelor's of computer science and engineering, and one of my courses is "Software Engineering". Our course assignment is to make a website, written in PHP. I don't really care for PHP, so I volunteered for the Code Quality Assurance team, thinking, I'm fairly consistent when it comes to adhering to the Java conventions, it should be reasonable to determine similar conventions for this project, and give my classmates pointers on how to improve the readability and layout of their source listings.
    The problem is, my professor, absolutely, whole-heartedly hates Java. He despises everything about it. For example, I sent him a source listing that I felt was well written, readable, and adequately documented. Some of the things that I was "doing wrong" were:
    1. Naming Conventions
    All of the Classes were first-letter capitalized, subsequent first-letter of each word capitalized. FormLayoutManager was one particular example. All instance or primitive identifiers were first-letter lowercase, subsequent first-letter capitalized, so an instance of FormLayoutManager could be formLayoutManager, or menuLayoutManager, etc. All constants were all capitals, with underscores separating each word. MAXIMUM_POWER. All methods were first-letter lowercase, subsequent first-letter capitalized, showLoginComponents().
    My Professor insists that the convention I (and most of the Java community as far as I can see) is terribly unreadable, and that all instances variables and method names be first-letter capitalized. I tried explaining that this sacrifices the ability to easily distinguish between a class type or interface, and an instance, and was ignored.
    2. Declaration and Initialization
    Also, supposedly declaring a local identifier and initializing it in the same line is some sort of abomination of everything sacred in programming. So I found myself constantly doing things like
    public String info() {
      StringBuilder info;
      info = new StringBuilder(512);
      // append a bunch of information to info
      return info.toString();
    }3. 80 Character line widths
    He wants me to break any statement that is over 80 characters in width into multiple lines. I know a long statement wrapping around in your editor is a irritating, but 80 characters, seriously, who doesn't have an editor that can't handle more than 80 characters on a line?
    4. this and argument names
    In most of my constructors that accept arguments, I would usually do something like
    public Student(String name, int age) {
       this.name = name;
       this.age = age;
    }Which he thinks is horribly confusing, and should be
    public Student(String n, int a) {
      name = n;
      age = a;
    }5. singular collections / arrays identifiers
    I had something like:
    String[] keywords= new String[] { "new", "delete", "save", "quit" };
    for (int i = 0; i < keywords.length; i++) {
       System.out.println(keywords);
    And he insisted that "keywords" be renamed "keyword", as in, the i-th keyword, which I think is kind of stupid because the array is an array of keywords, and having a singular identifier makes that less obvious.
    It's driving me crazy. It's driving everyone else in the class crazy because they're all mostly used to Java style conventions as well. I've tried pleading my case and I can't even get him to acknowledge the benefits of the "alternative" styles that I've used in my programs up to this point.
    Have any of you had to deal with either professors or bosses who have this type of attitude, whether it be towards Java or any other language? This guy has been involved with computer science for a while. I think he's used to Pascal (which I know nearly nothing about).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    You will find people who will disagree about this stuff all the time. I had a similar course and we read "Code Complete" which offers some style suggestions. Fortunately, my professor was intelligent enough to allow a discussion of these styles and I had a chance to argue against the "bracket every if statement" idea and other little things I didn't agree with. It was insightful conversation, rather than a "I'm the professor, you're a student, so listen to me".
    Here's the important part: It doesn't matter what the standard is, only that there is one.
    Unless I misunderstand, he allowed you to take on the responsibility of QA, so it is ultimately your decision. If the project suffers because of poor quality of code, it will be on your head. If, on the other hand, you give in to him and use a style that makes no sense and the project suffers because of poor code, it will still be on your head.
    So he really has no position in this because he is not a stakeholder in this decision. Tell him that this is your responsibility and you need to make the choices that are right for your group, not right for him. If he's teaching you anything that can reasonably be called software engineering, he should understand that. Otherwise he's just teaching out of a book called "Software Engineering" and doesn't know anything (or so it seems from this small window you've given us).
    caveat: If he's reviewing the code and he's particularly snarky about his "styles", you might want to consider giving in to his demands for the sake of your grade. Sad reality.

  • RH-generated WebHelp doesn't display some CSS styles

    I've worked with RH for a while, including creating other WebHelp projects in RH that have been deployed without any problem. On my current RH9 project, however, some of the CSS styles are not being applied after the project output is moved to a network directory. When I open the project output on my Desktop, the styles all render correctly.
    The styles in question aren't especially unusual:
    DIV.text {
              width: 640px;
              padding-left: 25px;
              padding-right: 25px;
              padding-bottom: 25px;
              margin-left: auto;
              margin-right: auto;
              background-color: #EDEBDE;
    P.footer {
              text-align: center;
              font-size: 8pt;
              line-height: 25%;
              color: #A13619;
    The kicker is that some of the styles ARE being applied (e.g., background image), while the 2 styles above are NOT being applied.
    Some of the things I've already tried include:
    - creating a new copy of the CSS file
    - making sure the correct stylesheet is referenced in the HTML files
    - making sure the correct stylesheet is referenced in the MasterPage
    - making sure the correct CSS type is specified in the HTML files
    - adding "!important" to the styles that aren't being applied
    Has anyone seen / resolved issues like this before?
    Thanks!

    Solution:
    My supervisor and I huddled on the problem and eventually found these discussions:
    http://stackoverflow.com/questions/4966952/ie-not-rendering-css-properly-when-the-site-is- located-at-networkdrive
    http://stackoverflow.com/questions/167657/will-targeting-ie8-with-conditional-comments-wor k#answer-168131
    I opened the IE Tools > Developer Tools panel, and used the Browser Mode settings to check the variations (IE7, IE8, and IE8 Compatibility). IE8 displayed all DIVs correctly, while the other two apparently severed the CSS file from the HTM file.
    I had to do a mass find/replace, pasting another meta tag below the RH generated compatibility check:
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    And there was much rejoicing.
    As an aside, the new meta tag did not work when I tried to apply it to the Master Page....which makes sense, I guess.

  • Importing Word into InDesign, problem with styles

    OS 10.6, CS5
    Hi everyone,
    Does anyone have any experience with importing styled Word docs into InDesign?
    Editors style their Word documents with some basic styles (Text, References, Headline, etc.) using a Word template that I created. Designers use import options to match the Word styles to the ID styles. This worked fine in Word 2004 and InDesign CS3: Word  "text" style would map on import to the InDesign "text" style, even though they had totally different attributes. Superscripts, italics, etc. would be respected as local overrides in InDesign.
    Then we upgraded to CS5. Automatic mapping on import no longer seems to work: After importing text, all the styles in InDesign have local overrides assigned to them that don't make sense (hyphenation exceptions, tab settings). So I'm left with importing the Word styles, using auto-renaming so that InDesign explicitly does NOT match styles.
    Then delete the Word styles one by one from the paragraph style panel, replacing with the desired ID style.
    This has gone on for several months and we've now upgraded to Office 2011 but that hasn't solved the problem.
    With Word 2011 docx files, the import works almost like it did in CS3, the styles almost come in cleanly: If the style in Word has NO local overrides, such as italics or superscripts, the InDesign style is correctly applied. The problem is those local overrides in Word--InDesign not only respects the italic or superscript, it also respects the font attribute. All the Word styles are Times New Roman so all superscripts in InDesign are coming in as superscript + TNR. (see screenshot)
    Are we left with our original work-around? Importing styles then manually deleting and replacing them?
    This is frustrating because it used to be smooth and seamless and while some new features of CS5 are great, it's annoying that it's broken this fundamental function!
    I've tried saving the Word files as doc or rtf instead of docx but this doesn't make a difference in this problem.
    Any help or advice would be much appreciated.

    I'm an author / publisher.  I write in Word and I publish with InDesign. When I'm in the review stages, I like to edit my text in Word, so I export the text as an RTF.  When I import it back into InDeisgn I often find that some of the styles have annoying overrides from Word that break things.  (1) Paragraph style stuff about hyphenation and (2)  Characters style stuff about  Character direction: Left-to-Right style.
    * Easy global  fix:  select the whole text open the Window | Style | Paragraph window, and click the button on the bottom to remove all overrides. And do the same for the Window | Style | Character window. Before doing this, I like to check that I don’t have any italics that are in the file as overrides rather than being in there as part of a header style or as part of the Emphasis style that I try to use throughout the text instead of just an italic override. It makes me uneasy to remove all overrides, as I always worry there might be an important one I could have kept.
    * (1) Specific fix for the hyphenation overrides: Make sure the hyphenation settings in the individual InDesign paragraph styles match, so far as possible, the Word global hyphenation settings in the Page Layout | Hyphenation dialog of Word.    InDesign will import any Word hyphenation settings that don’t match the InDesign doc styles as overrides.
    Specifically,  set InDesign Hyphen Limit to ( say) 1 and set Word | Hyphenation | Hyphenation Options | Limit consecutive hyphens to the same number (say) 1. Also set InDesign Paragraph Style Hyphenation | Hyphenation Zone to (say) 0.5” and set Word | Hyphenation | Hyphenation Options | Hyphenation Zone to the same number (say) 0.5”.  And turn off all the InDesign optional hyphenation check boxes at the bottom of the dialog, and the turn off the two check boxes in the Word Hyphenation Options box as well.In Word you should also set Hyphenation | Automatic.  If you cautiously set Word Hyphenation | None the import will throw a “Hyphenation” override on the hyphenated paragraph styles, even though this maikes no sense.
    You may still pick up some hyphenation related overrides on your heder styles, if you have set the headers not to hyphenate.  You can either dump the overrides in InDesign or you can set your header styles to hyphenate…and be careful not have any headers actually be longer than one line.
    (2) I still haven't found the fix for the Left-to-Right text override.

  • GREP for changing paragraph style?

    Okay folks, I have another one for all you smart people out there. I think GREP can be used to change formatting in the following instance, but I have no idea how to set it up.
    I have a very long document, essentially a phone book-type listing of names, phone numbers, addresses, well over 150 pages' worth. The paragraph styles are fairly simple, only two per listing. The name/phone number is bold with a right hand tab with leader dots to a phone number that is flush to the right side of the column. The following lines are flush left, not bold, but indented 6pts. I've placed the text file and assigned the entire thing the NameListing paragraph style. I'd like to use GREP to find the address lines and change them to the NameListingAddress paragraph style.
    Here's a screen shot to give you an idea. The left column is formatted correctly with both styles, the right column is "raw", all paragraphs formatted with the NameListing paragraph style.
    Is this an appropriate application for GREP? If so, how do I set it up to only change the paragraphs that "don't have tabs"? It would save me a crapload of time.
    THANKS again! --Dina

    If your intent here is to use the character style to trigger a variable, as I belive it is based on your other thread, you MUST apply the character style up to the first tab to pick up the text at the start of the paragraph. There are two approaches to automating the formatting after that, but it may be too late for you to be much help.
    In cases where every listing has the same number of lines it makes sense to use a unique paragraph style name (not necessarily format -- base on on another) for each lline and make it its own paragraph. Set up "next styles" to rotate through the list so each line is assigned the correct style based on the style of its predecessor. You get the rotation to sart over by making the first line style the next style for the last line. This works for manual entry and can be applied to an entire block of placed text in a single operation by selecting the text, then right-clicking the name of the first style to be applied and choose Apply <stylename>, Then Next Style.This ONLY works if you have exactly the same number of paragraphs in each listing.
    The other option is to use forced line breaks instread of paragraphs and use one style for the entire listing. Set a left indent and negative first line indent, create a character style for the part of the first line that you want to appear in your header and apply it Up To ^t^n (that's a little-known trick -- if you enter more than one character in the trigger for a nested style it will activate on the first instance of any of the characters listed that occurs, so for example if you enter the word cat, your style will end on the first, c, a or t that appears inthe paragraph. ^t is the metacharacter for tab, and ^n is for forced line break) so that the style will end at either the tab, if present, or the forced line break if there is no tab (if you use a right-indent tab instead of a regualr right aligned tab [tricky to do a leader, but that's another discussion] substitute ^y for the ^t), then add a nested Line Style for one line. That line style should use a second character style that is based on the first character style you created for the name text and has no other attributes if you want the line to be the same from end to end. Sounds more complex than it is, and will work for listings with variable lenghths. The trick is to repalce your paragraph returns with forced line breaks, and will require a little thinking.
    If using separate paragraph styles for each line, you'd use the same technique of a nested style up to a tab for the first line, but there is no need to get fancier since it will apply to the whole line if there is no tab. The paragraph style, in this case, would carry all of the bold and size formatting (and no need for any indents), and the character style would be nothing more than a name that will allow you to use it in the variable.

Maybe you are looking for