Class organisation for long project

Hello there,
I have developed a system for some collegues which, among many others, contains a single class that shows the output of their work in a GUI. My work contract runs out soon, however, these guys are going to need to continue to develop this GUI - probably by making another GUI class, which contains much of my code.
My problem lies here: currently, my GUI class called GUI_Main sets up everything, and also passes itself as parameter to several other classes, which run as threads or whatever, so they can call methods on my GUI class once they have completed some work - to update the GUI. So; if my collegues create another GUI class sometinme, and they copoy my code and try to pass this class to other classes to update the GUI, it will fail.
To regular Java programmers, this is a problem which can be solved trivially e.g. change the parameter types for those classes which take references to GUI_Main. However ,then there is the issue of not the original GUI_Main not working.
I was thinking about creating an abstract class which defines the method signatures of all of the methods used by other classes to update the GUI. Then making GUI_Main and whatever other GUI class that is developed to extend this abstract class. Then, I could change the parameter types for those classes which originally were references to GUI_Main to this new abstract class.
I wanted to make this an abstract class, and not an interface because GUI_Main is a JFrame - meaning that I would be able to make it extend JFrame. Is this ok?
Sorry if this is too long a message - but any help on general programming practise would be very greatly received.
- yours sincerely,,
Edward Turner.

Make it an interface, and phrase the method names in as generic way as possible. This will allow the greatest amount of reuse.
eg:
if there is something like refreshOutputPanel(ResultsData data) in GUI_Main, which is called when a Thread CalculateResultsData finishes running, make an interfaceinterface ResultsDataTarget {
void resultsDataCalculated (ResultsData data);
}that captures the higher level event rather that the result specific to a single GUI implementation.
That way not only can other GUIs by used (eg an AWT dialog), the same callback interface can be used inside an application server or console app, should the need arise in the future.
Pete

Similar Messages

  • IDVD changes encoding quality in the middle of burning a DVD.  This causes the DVD to run out of room for longer projects.  This worked fine for the past two years, and in the past few weeks it started having this problem.

    Here are details on the problem:  I'm running iDVD 7.1.2 on an iMac that uses OS 10.6.8.  After about two years of using iDVD to burn both single- and dual-layer disks, I find I can no longer burn dual-layer disks.  When I put in a dual-layer disk and try to burn a project, the project size keeps increasing.  For instance, I recently tried to burn a project that was just over 4GB and, when I stopped the project part-way through, the project size read as 6.89GB.  If I don't stop the project in time, the blue bar that indicates burning status reaches the end (so that all of it is blue) before the time listed has elapsed and the disk ejects but cannot be recognized by the computer or our dvd player.  If I then go to the project menu and switch the encoding from Professional Quality to Best Performance and back again, the program "remembers" the actual file size - but, if I try to burn the project again, I have the increasing same problem.  If I let the project go until the disk ejects, the project menu will then read some total in the red (i.e., above the size that a dl disk will burn, even though the actual file size is below the limit).  I believe (perhaps 90% sure) this began after I tried to encode a movie with subtitles; instead of burning properly, this movie created a data disk with at least one folder that said something about VIDEO_TS, if I recall correctly. 

    To be a true video DVD the disk must be in the UDF format (Universal Disk Format) and must have a AUDIO_TS folder (empty) and VIDEO_TS folder (where all the elements of the DVD are located).
    The content on a DVD is MPG-2 encoded and it is quite possible for the encoded size of your content to exceed the estimated project size - especially if you use lots of transitions and content encoded with CODECS more recent than mpg-2 (which is quite old at this point).
    The safest thing to do is to make your 'burn' to a disk image file - then you know everything went fine before you commit to burning a disk,  I know the instructions warn about creating a disk image file for dual-layer projects, but I've never had any problems and don't recall hearing anyone here who had problems.

  • How do you segment a long project and preserve HD 1920 x 1080 pixels at each step?

    I'm shooting video with a Canon HF S10 in the maximum quality (1920 x 1080 i) mode.  The resulting files in AVCHD format are coming into the computer and into Elements 7 okay.  The desired  Project output is BluRay.  I want to maintain the full image quality (1920 x 1080) end-to-end (lesser quality is okay on the timeline if that all that is available).  My current project is about 65 minutes long--future ones could be two hours or more.  All the 100+ trimmed clips and transitions are on the timeline.  Saving the Project file seems to work, but re-opening the Project takes a long time and doesn't always work.  Rendering this long timeline ulitimately freezes/crashes.  When the Project was much shorter, the save and reload cyle worked okay.
    Per Steve's book a work around is to break the project into pieces around 10 minutes long, render and save them to AVI files, reload and merge the AVI files into a new "Master" Project and then render the whole thing to BluRay(?).  Better yet he suggests outputing to a folder and burning the disc with other software.  But Elements does not output BluRay to a folder.  And when I experimented outputing with AVI segment files, quality dropped a lot suggesting that the 1920 x 1080 is not preserved in AVI format.
    It appears that:
         AVI files are just the DV 720 x 480 image quality of mini DV tape
         Output to a folder in BluRay image format is not available
         Elements 7 does not support breaking an HD 1920 x 1080 timeline into segments for long projects
    Any ideas will be appreciated.  Canon does supply a crude editing software package that is claimed to do simple cuts and transitions and produce a file that can be loaded back into the HF S10 memory for playback (distributing product on SD cards instead of BluRay is a novel possibility).  I'd prefer to use Elements or a similar software product that takes me start to finish without losing any pixels.
    Finally, I have a backlog of several long projects using HDV tape as a source.  I want those to go to BluRay too, but not giving up any of the 1440 x 1080 pixels.  I think the same limitations above apply to HDV.
    After waiting several years to get this end-to-end capability, it is disappointing to find it still seems to be out of reach (maybe is just hidden).
    Sometime soon, I hope Steve will write an edition that deals exclusively with the end-to-end HD (1920 x 1080) work flow including best scaling of still images, storage of image files and output to BluRay and creating slide shows using all the HD pixels (no SD compromises) again on BluRay.  That of course means Adobe may need to add some tweaks in Elements 8.
    Terry 9391
    PS, my PC is using an Intel Core 2 Quad processor, Vista OS, 4 GB of memory, has access to several TB of HD, and a couple of GB of Ready Boost memory (does this really help?) and a 1920 x 1200 monitor.

    You could export each section as 1920x1080 MPEG2 using the Share>Personal Computer>MPEG option then selecting the MPEG2 1920x1080i export Preset.
    You can also export as AVI... however this will be uncompressed AVI with a file size of over 1GB per minute... File>Export>Movie then in Settings under General>File Type select Microsoft AVI (not Microsoft DV AVI). Then in Video>Compressor select None, in Frame Size set 1920x1080 and in PixelAspect Ratio select Square Pixels.

  • [svn:bz-trunk] 21285: Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project

    Revision: 21285
    Revision: 21285
    Author:   [email protected]
    Date:     2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
    Log Message:
    Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
    Modified Paths:
        blazeds/trunk/apps/ds-console/console/ConsoleManager.as

    Revision: 21285
    Revision: 21285
    Author:   [email protected]
    Date:     2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
    Log Message:
    Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
    Modified Paths:
        blazeds/trunk/apps/ds-console/console/ConsoleManager.as

  • Adding .class files to your project and making them work.

    Ok, im fairly new to java and having trouble understanding how to make importing of .class files work. Im using eclipse 3.2
    I have the files in a directory and I have gone to project->properties->java build path->libraries->add external class folder and pointed it to the correct place.
    Now, I am trying to use some of the classes it provides. I get no errors when creating the object with this code:
    com.ECS.client.jax.ItemSearchRequest itemRequest = new com.ECS.client.jax.ItemSearchRequest();
    Before I did the add external class folder that code would error cause it didnt know what com.ECS was. Now it works fine. My problem is that when I try to use a class, it does not recognize it as a class. After doing the above code I have:
    itemRequest.setSearchIndex("Books");
    its giving me an error on the period, saying: "Syntax error on token(s), misplaced construct(s)". Its not seeing that it is a class, so I can't use it. But when I am creating the object I get no errors. For reference, here is the chunk of code:
    com.ECS.client.jax.ItemSearchRequest itemRequest = new com.ECS.client.jax.ItemSearchRequest();
    itemRequest.setSearchIndex("Books");
    the second line of which errors. So my question is, how do I get it to recognize that the itemRequest is a class when I have imported the .class files to my project already?

    It's working fine. It's just that you have to put your code in a method.

  • Searching for a Project status = CLSD and open purchase orders?

    Hi,
    I am searching for a project status (Project Builder CJ20N) which allowed my to set a CLSD or a simillar status for settlement with open purchase orders.
    This staus should allowed to process with open orders BUT  not allowed to add new orders after setting this status.
    Have somebody any idee? Or it is impossible?
    Tahnk you in advanced for your Help.
    Regards Baldy

    Hi TV-kid,
    while I was waiting for an answer I got to the same conclusion, so what you offers me is quite tempting actually.
    I got a look to your website and it seems convincing. Still though, your case studies are in other business area, It's only a mater of good knowledge of File Maker.
    I did download the test-drive last version of File Maker plus their samll Business Solution. I did read most of the documentation and the learning process would be too long to construct ourself a good crossed-data base.
    I'd like to get in contact with you to look for a possible colaboration. to get private, I'd liketo do it through your contact link in your website .
    To whom shall I write?
    Thanks
    Cheers
    Cheers

  • Final Cut won't open for a project

    I can open Final cut Pro HD But I cannot open my project After adding 10 Livetype titles. Every time I try to open the project the application crashes at 13% of reading the project. I can open other projects but not this one. The Project is only 30 minutes long. I Tried going into my library and deleting the Com apple final cut pro plist and the data folder but it did not help. I also deleted the livetype titles that I created off of my hard drive and I have have the same problem. Does anyone Know how to delete Livetype titles from a project without openng Final cut pro or how to resolve this problem. Please Help.

    Should I delete all of the render files for that project. One thing that I did do, since I worked on the project from my G4 laptop on a Lacie External drive, I tried opening the project up on my g5 desktop computer where there was no render files and the project still would not open. Is there any kind of way to delete livetype titles from the project without opening it.

  • How can I make server use single class loader for several applications

    I have several web/ejb applications. These applications use some common libraries and should share instances of classes from those libraries.
    But applications are being deployed independently thus packaging all them to EAR is not acceptable.
    I suppose the problem is that each application uses separate class loader.
    How can I make AS use single class loader for a set of applications?
    Different applications depend on different libraries so I need a way that will not share library for all applications on the domain but only for some exact applications.
    When I placed common jar to *%domain%/lib* - all works. But that jar is shared between all applications on the domain.
    When I tried to place common jar to *%domain%/lib/applibs* and specified --libraries* attribute on deploying I got exception
    java.lang.ClassCastException: a.FirstDao cannot be cast to a.FirstDaoHere http://download.oracle.com/docs/cd/E19879-01/820-4336/6nfqd2b1t/index.html I read:
    If multiple applications or modules refer to the same libraries, classes in those libraries are automatically shared.
    This can reduce the memory footprint and allow sharing of static information.Does it mean that classes should be able to be casted ?

    You didn't specify which version of the application server you are using, but the config is similar as long as you know what to look for. Basically, you need to change the classloader delegation. Here's how it is done in 8.2
    http://download.oracle.com/docs/cd/E19830-01/819-4721/beagb/index.html

  • IMovie for Mac: "iMovie cannot open files in the "iMovie for iOS Project" format."

    Question, asked professionally
    When will iMovie for Mac be able to open iMovie for iOS projects?
    Question, asked snarkily
    Any reasonable expectation that we will ever be able to edit projects--created in iMovie on our fancy new expensive phones--in iMovie on our fancy new expensive laptops?
    Specs
    iPhone 6 Plus (contract-free, 128 GB)
    iOS 8.1.2
    iMovie for IOS 2.1.1
    MacBook Pro (Retina, 15-inch, Mid-2014)
    OS X Yosemite 10.10.1
    iMovie for Mac 10.0.6
    Error Messages
    iMovie for Mac: "iMovie cannot open files in the "iMovie for iOS Project" format."
    iMovie for iOS: "An error occurred during export."
    Frustration
    Manufacturer: Apple (a multibillion dollar company)
    The year: 2015
    Hours lost: Three Weeks
    Total costs for both devices: $4,000
    Background Details
    I just wasted thousands of dollars on these two hardware devices by making the rookie mistake of assuming projects were compatible across iMovie applications. However, the exported .iMovieMobile project files are in an incompatible iMovie for iOS Project format that iMovie for Mac cannot import. So I am stuck with a 15 GB .iMovieMobile project file--for an hour-long+ video--that I created and I was editing on my iPhone for weeks that I can no longer edit on my iPhone due to an error, nor potentially rescue the lost hours on my Mac, the sole reason I purchased it one day ago. The reason I can no longer edit the project on the iPhone is because iMovie for iOS suddenly stopped displaying the video of the project in preview, external display, etc. The clip snapshots remain visible and the audio remains audible, but the video appears fully black. Any attempt to export the video at any resolution generates an error message. (This error applies only to this project; other projects export without issue.) I can save to and from iTunes or iCloud without issue, but import into iMovie for Mac is unavailable for this latest version. Deleting and reinstalling the app does not resolve the issue. Nothing has resolved this issue; so I purchased the Mac as a last attempt, and it appears that I will have to begin the meticulously painful process of recreating the video from scratch with all the titling, sound effects, precise edits, transitions, organization, etc. This video was to surprise my mother for her birthday with "this is your life" footage, including my late father. It may seem like a small first-world problem, but such things carry big emotional impacts. What began as such a wonderfully intuitive and joyful experience has descended into a soul-suffering nightmare of catastrophic proportions. This software grinch stole christmas.
    Likely Suspect
    I believe this originated from Apple's confusingly designed iTunes client that removed videos used by iMovie for IOS during a sync, which I successfully restored back to the iPhone. This apparently resulted in iOS seeking and then claiming to find all of the videos, but somehow a bug in the coding causes the audio to play but not display video, and no way to resolve the bug from an enduser standpoint. I was hoping that iMovie for Mac would allow me a workaround, but I'll never know because the iOS and Mac formats are currently and dishearteningly incompatible.
    Suggestions
    I never performed a full backup of the iPhone, but I don't believe any of the iCloud nor local backups actually backup iMovie projects themselves anyway. (That's a fail.) So one must back them up manually to iTunes or iCloud.
    MANUALLY BACKUP YOUR PROJECTS DAILY, IF NOT HOURLY.
    MANUALLY BACKUP YOUR PROJECTS BEFORE IMPORTING OR SYNCING FROM ITUNES.
    MANUALLY BACKUP YOUR PROJECTS BEFORE IMPORTING VIDEO CREATED OUTSIDE  OF YOUR IOS DEVICE.
    Resolutions
    Hope Apple fixes this problem soon? Perhaps.
    Return the Mac to Apple, if they allow? Perhaps.
    Someone in this community will provide a magical workaround--that I haven't already attempted? Perhaps.
    As unlikely these options may be, I shudder to imagine that I may be forced to suffer no resolution and $3,000+ completely down the drain, because if iMovie for IOS worked as intended, I wouldn't have ever purchased the Mac as a last ditch effort to rescue the project. It meant that much to me to surprise my mother by attempting to retrieve this project file from oblivion--but to no avail.

    I appreciate you taking the time to copy and paste boilerplate responses to increase your points in this forum, but I've already read all those support articles in depth; but you have barely read my post at all. Please don't guess a fix. Only someone with the latest versions of iMovie, iOS, iPhone, Yosemite, and MacBook Pro is qualified to troubleshoot this, because anyone would immediately see that the following option no longer exists:
    Open iMovie on your Mac, and choose File > Import > iMovie for iOS Project.
    Read my post before you reply: It clearly says in the title and within my post that I can neither export nor import through iTunes without receiving an error message. So your response neither solved my question nor helped me whatsoever.

  • How can I save previews for old projects, while burning the project to DVD?

    I'll admit, I haven't read the user manual cover to cover (or screen to screen for the electronic version), and haven't spent hours combing the discussions here, but I have searched for all the relevant keywords I can think of and can't find a concise answer to this question.
    I get the basic idea of Vaults (I think), but haven't found much info about long term storage of projects. I'm fulltime freelance, but not super busy, and I can easily generate 100,000 images each year. I don't have the cash to be keeping all of these images in Aperture projects on external hard drives for eternity, and I'd be surprised if anyone else does. Good thing I'm not a medium format digital shooter producing 50GB each day huh?
    I remember seeing a clip of a photographer 2 or 3 years ago discussing the differences between storing digital and film images. He was making the point that throwing away files you don't think you'll need again can be a mistake, citing a shot he had of Clinton and Lewinsky together, before Clinton and Lewinsky were news. "If I'd been shooting digital, that image wouldn't exist today". It was a great pic, and when that whoel scandal erupted, it made him alot of money.
    So at present I'm storing every image I take in finished projects on DVD trusting that in the future I'll be looking for a shot of someone I may have shot 5, 10, 15 years ago.
    I caught part of a discussion that talked about keeping the preview files for all the images (and subsequent versions) for each project. I'd love to be able to keep lo-res previews/copies of everything I've shot to date, and have them immediately accessible on my hard drive, while my full size projects are safely stored on DVD, taking up space on a bookshelf rather than on my hard drive. Loading 10 DVD's worth of projects to see what's inside them is a headache I'd like to avoid if possible, in favour of instantly checking out lo-res previews to look a shot up.
    Is there an easy way to burn a completed project to DVD, but keep only the (lo res, lo size) previews on my hard drive?
    20" iMac and G4 Powerbook   Mac OS X (10.4.8)   "A creative and dynamic professional" (I lie alot and can't sit still)

    hello, kiwi
    quote: "Is there an easy way to burn a completed project to DVD, but keep only the (lo res, lo size) previews on my hard drive?"
    yes.
    maybe,...
    1. you might think of making DVD backups first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    or,
    2. bring in the photographs to hard drive first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    the low rez Previews will stay in Aperture but the high quality Versions will be exported onto DVDs and gone from the hard drive (if you delete the originals).
    another way would be to export small about 50-70 pixel wide high quality jpegs to a folder on your Desktop and import & keep these in Aperture Library as a reference. make metadata to show where the original Project DVDs are stored and DVD filing system used.
    victor

  • Long Projects exported Media Encoder 5.0.1 fail to finish

    Exporting 90 minute P2 AVC-INTRA 100 sequence or a 90 Motion JPEG sequence fails to finish.  Both exports fail around 50%.  Media Encoder 5.0.1 fails to finish.  This is reminicent of PP 2 and CS3 days when long sequences would not finish.  In this case I ended up breaking up the sequence into two parts and the exports complete.  Suspect that media encoder 5.0.1 over time generates error that there is not enough disk space when there actually is.  Media Encoder indicates error compiling movie.  Maybe not refreshing itself during the export process.  Developers need to fix this asap.  Memory management may also be an issue with this problem.
    If anyone is having this same exporting problem suggest you break up project into chunks for now until this is fixed by Adobe.
    Cannot finish long projects with this bug not being fixed.

    Have not tried that.  System configuration guys I talk to on a regular basis have told me that because Media Encoder is caching the project in memory that the appropriate way to to run and export via Media Encoder, when exporting your project, is to queue the export to Media Encoder from Premiere then start the encode in Media Encoder first then close Premiere CS5.  Something to do with the way they link or something.  However the problem I am having is exporting a long project (90 minutes).  Adobe had an issue a few versions back with this same issue of exporting a large project.  I suspect it has to do with the app no rechecking it's own processes or some piece of code that is stopping the export after a certain time or certain size when it should not.  Reported the bug to adobe and I hope they fix it asap.  I could be wrong as I am using a GTX 480 card and because mercury playback is not officially supported I could be having issues related to the card.  However, until I hear someone exporting a 90 minute or 2 hour movie in AVC-INTRA 100 or motion jpeg or Cineform without a problem I am pretty sure this is a bug.

  • Help with FCP and long project editing - Thanks!

    I have posted several questions in this discussion group and in the iMovie group to no avail. I get a lot of answers, but not from anyone who has actually done any of the editing I am seeking. So if anyone has actually done the editing I am describing below -- I appreciate your help. Yes, I have searched the archives -- but again, I see a lot of confusing feedback. I have been working on this for three days now and it's driving me crazy! I have discovered that iMoive is $#@% -- and does not work with a long project, (40 minutes) so I am thinking about switching to FCP-HD. Thanks.
    Here goes:
    1: I need to transfer original master footage, 1080i HDV from a Sony HDR-FX1 to an editing program, edit the tapes (over 5 hours total) into a 50 minute "program". I then need to "share" or export the footage back to a new tape, using the Sony HDR-FX1 as the receiving camera. Simple enough.
    2: I need to make sure the outgoing footage is of equal quality as the original footage taken from the camera. I am guessing here, that the footage can be edited in FCP-5 as "native" -- then transferred back to the Sony?
    3: I am assuming that the native footage is just that -- and will not require the long process of converting to another format, e.g., ASI that takes hours to
    render. (as in iMovie).
    4: I am assuming I can edit and view HDV as native footage in FCP in real time, like iMovie, via firewire from the camera?
    I really appreciate any assistance.
    Chance

    Welcome to the family, you'll be joining us soon.
    The FCP product page says: > It features powerful new multicamera editing, native HDV support, ... edit everything from DV and SD to DVCPRO HD and fully uncompressed 10-bit high-definition video. Or work with new formats like native HDV (long-GOP MPEG2) and 50Mbps IMX... HD editing requires a 1GHz or faster PowerPC G4 or G5 and 1GB of RAM (2GB recommended).<
    You seem to have the hardware including the Flux-o-pator, but, really, you want to talk to an Apple reseller who handles FCP and understands HDV via Sony. I don't like the way you're using "I am assuming..." You can't assume anything. Give them a chance to sell you FCP or Studio and go demo your camera on their system. You will have concrete evidence of the minimum machine specs and how well you can get your files in and out of the application.
    Call you local Mac user group and try to locate other FCP users.
    Try also the creativecow.net forums for Sony HD products.
    Google your camera model for support groups.
    bogiesan

  • White background or Black background suited for long term watching ?

    Hello,
      I saw many desktop themes with white or light grey background a few years ago, but now, many of them turn into black background with white or blue or cyan or others color of fonts.
      As a programmer, I am just curious about the theme: which type is suited for long term use of computer?
      I have tried both, and found grey background is easy to read because it is similiar to read on paper, but it looks like a lighting-bulb!; black background with blue font is cool, along with less luminosity, seems free my eyes.
      But another problem is the color choosing. With light grey background, it seems any color is right. But with black background, colors should be carefully selected, since some colors are not suit black background at all.
      Grayscale is another one. With light grey  background, I can easily tune my font in grayscale, like Japanese cartoon paper (I like it very much!), gracifully to distinct keywords. But with black background, it is ugly to use grayscale to distinct keywords.
      How about your ideas?
    Last edited by ShinChyn (2010-05-29 08:20:50)

    Dont mean to duplicate your effort Ogion, but Hrwa's Dark Forum userstyle worked well for me, and I only made a few changes. Here's what I use:
    @namespace url(http://www.w3.org/1999/xhtml);
    @-moz-document domain("bbs.archlinux.org") {
    /*#brdheader .box, #punredirect.pun{
    background-image: url(http://stashbox.org/485258/2.png) !important;
    body{
    background: /*url(http://stashbox.org/485257/1.png)repeat-x top left */#111111 !important;}
    td.tcl, td.tcr, #idx1>.box, #idx2>.box, #idx3>.box, #idx4>.box,
    #brdstats.block>.box, #brdfooter.block>.box, #vf.blocktable>.box, .box>form,
    .rowodd>.box>.inbox, .roweven>.box>.inbox, .roweven>.box, .rowodd>.box, h2,
    .fakeform, #searchform.blockform>.box, .pun>.blockform>.box,
    #users1.blocktable>.box,.block2col >.blockmenu >.box, .rowodd, .roweven,
    #postpreview.blockpost>.box, #punredirect.pun>.block>.box>.inbox,
    #punredirect.pun>.block>.box, #helpfile>.box{
    background-color: #222222 !important;
    border-color: #111111 !important}
    th.tcl, th.tcr, .tc2, .tc3, blockquote, .codebox, .infldset>dl>dd{
    background-color: #333333 !important;
    border-color: #111111 !important;}
    .tcl, .tc3, .tc2, .tcr, dd, dd>a:hover, .tcr>a:hover, h3>a:hover,
    .conr>li>a:hover, .conl>li, .linkst>.inbox>ul>li>a:hover, .pagelink>a:hover,
    .tclcon>a:hover, .tclcon>strong>a:hover, .postlink>a:hover, .conr>li>a:hover,
    .subscribelink>a:hover, .postmsg>p, .postsignature, .incqbox, dt>strong>a:hover,
    .postmsg>p>a:hover, .postsignature>strong>a:hover, .postsignature>a:hover,
    .postquote>a:hover, .bblinks>li>a:hover, .incqbox>p>a:hover, .infldset>dl>dt,
    .clearb, .conl, #profile1>p, .isactive>a, .postleft>dl>dt>strong,.infldset,
    .linkst>.inbox>ul>li, .pun select, .postlinksb>.inbox>ul>li, .postfootleft>p,
    #punredirect.pun>.block>.box>.inbox>p,
    #punredirect.pun>.block>.box>.inbox>p>a:hover, .newtext>a:hover, .tc2>a:hover,
    .postlinksb>.inbox>ul>li>a:hover, #helpfile>.box, .postedit>a:hover{
    color: #999999 !important}
    /* textbox */
    .inform>fieldset>legend { color:#999999 !important;}
    .infldset>label>textarea { color:#111111 !important; }
    .postleft, .postfootleft, .blockpost label, .pun select{
    background-color: #303030 !important}
    .postright, .postfootright{
    background-color: #222222 !important;
    border-color: #303030 !important}
    .icon{border-color: #999999 !important;}
    .inew{border-color: #0771a6 !important;}
    I commented out the external logo calls (since the new logo area fits really nicely with this style), The sections I commented out can probably be removed safely, and I made the textbox post area more readable.  Now I love the new webpage layout!
    Here's the dark home page style I'm using, also based on Hrwa's archlinx homepage userstyle, but I havent made too many changes there, other than the package search box needed a little tweeking.   I havent really checked the other pages, I do know the wiki pages have some issues with this style, if anyone else wants to help out
    @namespace url(http://www.w3.org/1999/xhtml);
    @-moz-document domain("www.archlinux.org"),
    url-prefix("http://archlinux.org"),
    domain("wiki.archlinux.org"),
    domain("planet.archlinux.org"),
    domain("bugs.archlinux.org"),
    domain("repos.archlinux.org"),
    domain("aur.archlinux.org"),
    domain("projects.archlinux.org"){
    /*#archtitle>a, #logo{
    background-image: url(http://stashbox.org/485258/2.png) !important;
    width: 341px !important;
    height: 103px !important;
    body{
    background:/* url(http://stashbox.org/485257/1.png)repeat-x top left */#111111 !important;}
    #content, .foot,code,#pkgsearch{background-color: #111111 !important;}
    .searchButton, .historysubmit, input#searchInput, #wpMailmypassword,
    #wpLoginattempt, .loginText, .loginPassword, #wpCreateaccount, #wpRealName,
    #wpUserEmail, #wpNick, #wpUserLanguage, #wpOldpass, #wpNewpass, #wpRetypePass,
    #prefcontrol>div>input, #wpHourDiff, #guesstimezonebutton, #wpCols, #wpRows,
    #wpRecentDays, #wpRecent, #wpWatchlistEdits, #wpWatchlistDays, #wpSearch,
    #wpSearchLines, #wpSearchChars, #wpStubs, #wpNewTitle, #wpReason,
    #movepage>table>tbody>tr>td>input, #bodyContent>form>input, #wpSummary,
    #wpPreview, #wpSave, #wpDiff
    {color:#111111 !important}
    #related.tab, #p-navigation>.pBody, #p-tb>.pBody, #searchBody, .box, #updates, #footer, .toc, #catlinks, .greybox,
    #ca-nstab-main>a,#ca-talk>a, #ca-edit.istalk>a, #ca-edit>a, #ca-addsection>a,
    #ca-history>a, #ca-viewsource>a, #pagehistory>li, #ca-nstab-project>a,
    #ca-nstab-special>a, #ca-nstab-category>a, #mw-pages>table, #bodyContent>table,
    #bodyContent>table>tbody>tr>td, .post2, .post-title>a, .post-contents,
    .post-footer>p>a, .person-info, #gitbody, .page_header, .page_footer, input,
    .light, #menu, #pm-menu, select, #tasklist_table > tbody > tr>td,
    #taskdetails, #comments, #commentstab>a, #relatedtab>a, .vc_diff_header>th,
    .vc_diff_chunk_header>td, .pgbox, .data2, #content>#search, #userloginForm>form,
    #userloginForm>form>table, #userlogin2, #userlogin2>table, #ca-watch>a,
    #ca-nstab-user>a, #preferences.jsprefs, #prefsection-0.prefsection>table,
    #prefsection-0.prefsection>fieldset>table, #preftoc>li,
    #prefsection-3.prefsection>fieldset>table,
    #prefsection-5.prefsection>table, #prefsection-7.prefsection>table,
    #ca-move>a, #movepage>table, #ca-unwatch>a, .redirectmessage,
    #comments.tab>fieldset, #historytaba, #events, #ca-nstab-help>a, .notice,
    .notice>tbody>tr>td>a>img, .notice>tbody>tr>td{
    border-color: #111111 !important;
    background-color: #222222 !important;}
    .news, div>span, p, h3, td, h2, input, #lastmod, #viewcount,
    #copyright, th>b, ul>li, ol>li, dl>dd, .results>tbody>tr>th>a,
    .listing>tbody>tr>th,.results>tbody>tr>th, tr>th>b, pre, #bodyContent>div,
    .pkgr2, #id_q, #id_last_update, td>input, #id_repo, #id_arch, #id_limit, .title,
    #intromessage, #tasklist_table>thead>tr>th>a, #menu, select, #comments,
    #fineprint, .vc_diff_header>th, .f3, .f4, .f2, .blue, .firstHeading,
    .mw-headline,p>a:hover, td>a:hover, .news>a:hover, .foot>a:hover, span>a:hover,
    .links>li>a:hover, b>a:hover, dd>a:hover, .listing>ul>li>a:hover,
    .post-title>a:hover, #devlist>a:hover, #gitbody>.page_header>a:hover,
    #gitbody>.page_nav>a:hover, #n-mainpage>a:hover, #n-portal>a:hover,
    #n-currentevents>a:hover, #n-recentchanges>a:hover, #n-randompage>a:hover,
    #n-help>a:hover, #n-sitesupport>a:hover, #t-whatlinkshere>a:hover,
    #t-recentchangeslinked>a:hover, #t-upload>a:hover, #t-specialpages>a:hover,
    #t-print>a:hover, #t-permalink>a:hover, #bodyContent>ul>li>a:hover,
    .rcoptions>a:hover, #mw-pages>table>tbody>tr>td>ul>li>a:hover,
    .external:hover, .toctext:hover, .tocnumber:hover, #toplevellink:hover,
    #homelink:hover, #roadmaplink:hover, #intromessage>a:hover, #fineprint>a:hover,
    #taskdetailstext>a:hover,#comments>em>a:hover,
    #comments>div.attachments>a:hover, .comment_changes>li>a:hover,
    .commenttext>a:hover, #preftoc>li>a, #comment_text, #bodyContent{
    color: #999999 !important;}
    b>a, p>a, dd>a, h5, #n-mainpage>a, #n-portal>a, #n-currentevents>a,
    #n-recentchanges>a, #n-randompage>a, #n-help>a, #n-sitesupport>a,
    #t-whatlinkshere>a, #t-recentchangeslinked>a, #t-upload>a, #t-specialpages>a,
    #t-print>a, #t-permalink>a, .toctext, .tocnumber, .toctoggle, td>a, span>a,
    #bodyContent>ul>li>a, #bodyContent>ul>li>ul>li>a, #ca-nstab-main>a, #ca-talk>a,
    #ca-edit.istalk>a, #ca-addsection>a, #ca-history>a, #ca-viewsource>a,
    #ca-edit>a, #ca-nstab-project>a, #ca-nstab-special>a, #ca-nstab-category>a,
    #mw-pages>table>tbody>tr>td>ul>li>a, .page_header,
    .page_header>a, .page_nav>a, #intromessage>a, #toplevellink, #homelink,
    #roadmaplink, #fineprint>a, #taskdetailstext>a, #comments>em>a,
    #comments>div.attachments>a, .comment_changes>li>a, .commenttext>a, .black,
    .rcoptions>a, #ca-watch>a, #ca-move>a, #ca-unwatch>a, #bodyContent>ol>li>a,
    #bodyContent>ul>li>ul>li>ul>li>a{
    color: #0771a6 !important;}
    .comment-header, .pkgr2, #id_q, #id_last_update, td>input, #id_repo, #id_arch, #id_limit,
    #bodyContent>table>tbody>tr>th,
    .dark, .title, #lbl_user_name,
    #lbl_password, #searchtext, #taskid, #taskrange, #numbers, .summary,
    #comments>div.attachments, #taskdetailsfull>.attachments,.vc_diff_change,
    .boxSoft, .pgboxtitle, .boxSoftTitle, .data1, legend, #preftoc>li.selected,
    #comment_text{
    background-color: #333333 !important;}
    .post-title>a, .post2, .post-footer>p>a, .person-info{
    background-image: none !important;}
    .vc_diff_add{background-color: #397f37 !important;}
    .vc_diff_remove, .outofdate{background-color: #bf6b6b !important;}
    .vc_diff_empty{background-color: #999999 !important;}
    tr>th{background-color: #0771a6 !important;}
    pre, #bodyContent>div{background-color: #222222 !important;}
    .pgboxtitle, .boxSoftTitle{border-color: #222222 !important;}
    #pkgsearch{width: 275px!important;}
    this is how I like my archlinux.org to look

  • Do we need to put the following code in the web-xml for the project to run

    Hi^^^,
    actually I have created a project in Eclipse WTP and I am running it from remote server. Its giving me 404 error when I tried to run it.
    I know 404 error is generally due to some error in deployment descriptor.
    I am going through this tutorial for creating project in eclipse WTP
    this says that I need to include the following code in web-xml. Please look at the quotes below
    "Web modules in J2EE has a deployment descriptor where you configure the web application and its components. This deployment descriptors is called the web.xml. According to the J2EE specification, it must be located in the WEB-INF folder. web.xml must have definitions for the Servlet and the Servlet URI mapping. Enter the following lines into web.xml:"
    "Listing 2. Deployment Descriptor web.xml"
    <servlet>
    <servlet-name>Snoop Servlet</servlet-name>
    <servlet-class>org.eclipse.wtp.tutorial.SnoopServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Snoop Servlet</servlet-name>
    <url-pattern>/snoop/*</url-pattern>
    </servlet-mapping>
    My question is, it is necessary to include the above lines between <servlet> and </servlet-mapping> in web-xml
    thanks and regards,
    Prashant

    pksingh79 wrote:
    actually I have created a project in Eclipse WTP and I am running it from remote server. Its giving me 404 error when I tried to run it.
    I know 404 error is generally due to some error in deployment descriptor. what's the url you've put.
    <servlet>
    <servlet-name>Snoop Servlet</servlet-name>
    <servlet-class>org.eclipse.wtp.tutorial.SnoopServlet</servlet-class>
    </servlet> Every Servlet has to have a <servlet></Servlet> tag in the web.xml
    the <servlet-name>is for the naming the servlet and the <servlet-calss>is for class file of the servlet in your case the .class file is to be in the package of tutorial,if it's not then how the container will no where the calss file is
    <servlet-mapping>
    <servlet-name>Snoop Servlet</servlet-name>
    <url-pattern>/snoop/*</url-pattern>
    </servlet-mapping>You type something in your url likk http://localhost:8080/webappname (Tomcat server),so for url mapping instead of typing the entire class file name ,you just enough have to type what you've put in the <url-mapping> tag and it has to be inside of <servlet-mapping>
    I think the problem is in <url-pattern> change it like /snoop<url-pattern>
    My question is, it is necessary to include the above lines between <servlet> and ></servlet->mapping> in web.xmlSo now you think whether you need something inside <servlet>and </servlet-mapping>

  • Tools to list classes used in the project/

    Hi
    is there any tool that would list all the classes and packages used in my project. the tools must be something like getting input as a main class and list all the other classes used in the project. ?
    -- MJ

    Hi,
    This forum is exclusively for discussions related to Sun Java Studio Creator. Please post your question at :
    http://forum.java.sun.com/forum.jspa?forumID=54
    Thanks,
    RK.

Maybe you are looking for