Probably a stupid question about Date

Hi.
I am struggeling with something that should be an easy task, but I can't seem to get it right.
I want to extract a date from a view object, add a number of days to the date, and compare it with todays date.
This is what I try to do:
Date today = (Date)oracle.jbo.domain.Date.getCurrentDate();
Date published = null;
int days = currThing.getExpirenumber().intValue();
expires = currThing.getPublishdate();
expires.addJulianDays(days,0);
switch (expires.compareTo(today)){
case -1: return true;
case 0: return true;
case 1: return false;
his code compiles, but when I run it I get an java.sql.SQLException: Unimplemented method called
What am I doing wrong here ??
Is there another way to do this ?
Morten
null

There are several ways to accomplish what you want.
KGCW has talked about the Crop Effect.
Depending on exactly where the object is, and whether the camera was locked down, it might be possible to duplicate your Clip, place it above your initial Clip, then offset it a bit (Motion>Position), with the Fixed Effect>Motion>Position, and then apply the Garbage Matte to that offset duplicate, effectively Cropping out everything, but a small "patch" from the existing background. Note: if the edges of that Garbage Matte are too hard for you, you could create a soft-edged Track Matte, and use that to hold out the rest of the offset duplicate.
Another method, and depending on where, and how large the offending item is, would be to go to the Fixed Effect>Motion, and use Motion>Scale to increase the size of the Clip (do not do too much Scale, or quality will suffer). You might also need to do a bit of Motion>Position, to get that red object behind the Video's Frame Size. This will effectively Crop the object.
Good luck,
Hunt

Similar Messages

  • Probably a stupid question about cropping a video..

    OK, so I shot an interview with a black background and once I went to edit it, I noticed a red object in the far right corner. Is there a way I can add black over this object or crop it out? I know this is a stupid question, but I'm new to video and editing in general so I thought it wouldn't hurt to ask.

    There are several ways to accomplish what you want.
    KGCW has talked about the Crop Effect.
    Depending on exactly where the object is, and whether the camera was locked down, it might be possible to duplicate your Clip, place it above your initial Clip, then offset it a bit (Motion>Position), with the Fixed Effect>Motion>Position, and then apply the Garbage Matte to that offset duplicate, effectively Cropping out everything, but a small "patch" from the existing background. Note: if the edges of that Garbage Matte are too hard for you, you could create a soft-edged Track Matte, and use that to hold out the rest of the offset duplicate.
    Another method, and depending on where, and how large the offending item is, would be to go to the Fixed Effect>Motion, and use Motion>Scale to increase the size of the Clip (do not do too much Scale, or quality will suffer). You might also need to do a bit of Motion>Position, to get that red object behind the Video's Frame Size. This will effectively Crop the object.
    Good luck,
    Hunt

  • Probably a stupid question about upgrades...

    I originally bought Adobe CS3 Web Premium and upgraded to CS5.5 Design Premium last year.  I'm wondering if I upgrade, will my price be based on the CS3 license or the CS5.5 upgrade...?
    I'm guessing it will be based on CS5.5, but I want to make sure.
    -A. Ka

    There are no stupid questions!
    Regardless of whether you got to CS5.5 via upgrading to it or by originally licensing CS5.5 is irrelevant in terms of the upgrade price to CS6 as well as the media you use for the upgrade.
              - Dov

  • Probably a stupid question

    just got a macbook pro and want to be able to use the webcam to chat with my hubby on his PC when he is out of town on business. he does NOT have a webcam so we need to know what kind he can get that will allow us to talk and see each other. i know this is probably a stupid question but we are new at this.....

    Welcome to Apple Discussions, bevs
    Any PC webcam that is compatible with your hubby's PC system, (Windows?) OS, and chat software will work. Best suggestions will come from the "Help" pages for his chat applications software.
    For you to be able to video chat with your hubby, it is important that you choose applications software that offers "cross-platform" (Mac to PC) video chat capability. There are several choices available, but Skype probably currently offers the best balance between ease of use and reliability in free cross-platform video apps.
    Whichever apps (and camera) you and hubby choose, everything must be compatible with your respective computers and operating systems. I mention this because your posted system info shows macbookpro   Mac OS X (10.0.x). Mac OS X (10.0.x) is now five major upgrades old. No MacBook Pros shipped with Mac OS X (10.0.x), so I expect that your system info just needs to be updated. However, if I am wrong, you will need to upgrade your Mac OS to use Skype, because Skype's System Requirements show you must use Mac OS X v10.3.9 Panther or later. I do not know any video chat apps that work with Mac OS X (10.0.x).
    In order to use Skype, both you and your hubby will need to download and install your respective versions of the Skype software. Skype offers free AV connections between computers (although its website seems to concentrate on its for-fee telephone connection service,) it is easy for most users to configure and set up, and it offers cross-platform audio with its video chat. (Not all video chat apps offer simultaneous audio.)
    Your iSight will work with Skype, as will most PC webcams for your hubby. For more information now, or for help if you encounter problems using Skype later, Skype offers comprehensive support that includes a dedicated Skype Forum as well as technical support directly from Skype in addition to its online FAQ and Knowledge-base.
    If you decide to go with Skype, your hubby can get Skype-specific suggestions for PC webcams here.
    Please let us know if you need any other info before you can mark your question "Answered." We will be happy to try to offer more focused suggestions for your specific questions.
    EZ Jim
    PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.1)  External iSight

  • This is probably a stupid question, but what does the red circle with a number in it mean on iCal? It looks just like the emails notification. I do not have anything do or up in my cal.

    This is probably a stupid question, but what does the red circle with a number in it mean on iCal? It looks just like the emails notification. I do not have anything do or up in my cal.

    Actually, another person on the "more like this" had the right answer. It meant I had a notification for an invite that I needed to respond to.
    Hope this helps you as much as it helped me.
    D

  • I have a question about Data Rates.

    Hello All.
    This is a bit of a noob question I'm sure. I don't think I really understand Data Rates and how it applies to Motion... therefore I'm not even sure what kind of questions to ask. I've been reading up online and thought I would ask some questions here. Thanks to all in advance.
    I've never really worried about Data Rates until now. I am creating an Apple Motion piece with about 15 different video clips in it. And 1/2 of them have alpha channels.
    What exactly is Data Rate? Is it the rate in which video clip data is read (in bits/second) from the Disc and placed into my screen? In Motion- is the Data Rate for video only? What if the clip has audio? If a HDD is simply a plastic disc with a dye read by "1" laser... how come my computer can pull "2" files off the disc at the same time? Is that what data transfer is all about? Is that were RAM comes into play?
    I have crunched my clips as much as I can. They are short clips (10-15seconds each). I've compressed them with the Animation codec to preserve the Alpha channel and sized them proportionally smaller (320x240). This dropped their data rate significantly. I've also taken out any audio that was associated with them.
    Is data rate what is slowing my system down?
    The data rates are all under 2MBs. Some are as low as 230Kbs. They were MUCH higher. However, my animation still plays VERY slowly.
    I'm running a 3GigRam Powerbook Pro 2.33GHz.
    I store all my media on a 1TB GRaid Firewire 800 drive. However for portability I'm using a USB 2 smartdisk external drive. I think the speed is 5200rpm.
    I'm guessing this all plays into the speed at which motion can function.
    If I total my data rate transfer I get somewhere in the vicinity of 11MBs/second. Is that what motion needs for it to play smoothly a 11MBs/second data connection? USB 2.0 is like what 480Mbs/second. So there is no way it's going to play quickly. What if I played it from my hard drive? What is the data rate of my internal HDD?
    I guess my overall question is.
    #1. Is my thinking correct on all of these topics? Do my bits, bytes and megs make sense. Is my thought process correct?
    #2. Barring getting a new machine or buying new hardware. What can I do to speed up this workflow? Working with 15 different video clips is bogging Motion down and becoming frustrating to work with. Even if only 3-4 of the clips are up at a time it bogs things down. Especially if I throw on a glow effect or something.
    Any help is greatly appreciated.
    -Fraky

    Data rate DOES make a difference, but I'd say your real problem has more to do with the fact that you're working on a Powerbook. Motion's real time capabilities derive from the capability of the video card. Not the processor. Some cards do better than others, but laptops are not even recommended for running Motion.
    To improve your workflow on a laptop will be limited, but there are a few things that you can try.
    Make sure that thumbnails and previews are turned off.
    Make sure that you are operating in Draft Mode.
    Lower the display resolution to half, or quarter.
    Don't expect to be getting real time playback. Treat it more like After Effects.
    Compressing your clips into smaller Animations does help because it lowers the data rate, but you're still dealing with the animation codec which is a high data rate codec. Unfortunately, it sounds necessary in your case because you're dealing with alpha channels.
    The data rate comes into play with your setup trying to play through your USB drive. USB drives are never recommended for editing or Motion work. Their throughput is not consistent enough for video work. a small FW drive would be better, though your real problem as I said is the Powerbook.
    If you must work on the powerbook, then don't expect real-time playback. Instead, build your animation, step through it, and do RAM previews to view sections in real time.
    I hope this helps.
    Andy

  • Probably a stupid question on heart rate sensor

    Can i use the Nike (or better the Polar Wearlink) heart rate sensor together with the Nike+ shoe sensor ? Can the ipod peering with two bluetooth sender ?
    Please do'nt hit me, about that stupid question ..

    According to the Polar web site it is only compatible with the 5th generation iPod:
    http://www.polarusa.com/us-en/aboutpolar/press_room/press_releases/Nike_and_Polar_introduce_heart_rate_training_to_ millions_of_Nikerunners

  • A very stupid question about MDic application[SOLVED]

    I have tried StarDict in Arch which I think that is the best known dictionary application in Linux world. Since I had to use mouse to access StarDict, I decided to try MDic instead. My problems is that I do not know the default location of MDic dictionary files. After search topics for about two hours, I gave up.
    There must be a directory where MDic searches for dictionary files. Where is it? or What MDic configuration file has the information? So, I can install dictionary files int to the directory. I looked for this information in http://mdic.gnufolks.org/ and google.com. I believe this kind of very fundamental information should be in the wiki fo MDic. But I couldn't find one. Maybe, it is because I am so idiot. Would somebody help me how to install MDic dictionary in a appropriate location or the default location? Thank you so much for your helps.
    Last edited by since1992 (2010-11-06 11:28:30)

    Yes, it was a stupid question. I found that I can configure the location of the dictionary file. I also installed PyGlossary to convert dictionaries for MDic. Everything works fine now. Thank you.

  • Basic (probably stupid) question about APExp

    Hi, Just one quick question. The Wi-Fi connection provided by the built in airport in my iMac covers my whole living room, but since I have many apple devices using that same NetWork, sometimes it fails. So before I buy an aiport extreme, I would like to try the airport express, and my question is: The airport express connects (and amplifies) to the wi-fi network of the iMac, so how do I know on which airport am I connecting with my other apple devices? I don't know if I was able to be clear. Thanks a lot!

    Just one more question. If the APExp creates a new wifi network how do I have internet in all The devices?
    Is it possible the following network configuration?:
    iMac - cable - modem ( existing already) - existing AirPort - AirPort express - wifi (with internet) for all the other devices ( iPhone, apple tv, MacBook, ps3 )?
    My idea is to have all this devices in network ( sharing files, playlists) with internet access ( which is phisically connected to The iMac)
    Is it possible? Or do I have to buy an AirPort extreme AND an AirPort express ( since I have to have a cable To my ps3...And my wife is bugging me about The LAN cable across The living room?) . Thanks

  • Stupid questions about keeping important calls on the FX application thread

    I'm working on a project that I've been developing for about the last 6 months. I'm using JavaFX as the graphical side, but I'm taking input from a music processing program called Max/MSP, and I'm getting user input from a camera. Both of these things need to run on separate threads from my FX application thread. Up until now, things have been going smoothly. I can manipulate things on screen from my user input, and I have two way communication working between my JavaFX application and Max. Now, however, I need to start actually drawing stuff at runtime. Up until now, pretty much all FX side manipulations of been to just make translations. I now need to create, add, and remove children from Nodes. So I'm of course getting an error saying "not on FX application thread". I understand why it isn't on this thread, and why this is a problem. So I made some changes, so that calls that will make changes to the nodes on the stage, will only note the data, and then make the changes later, on the FX application thread. And then I run into problems, involving my own stupidity...
    I have no idea how to get these calls onto the FX application thread. I mean, this should be really easy. I'm obviously missing something. Or maybe I'm just really tired, and have been looking at this for too long, or maybe the fact that it's been 6 months since I wrote this part of the code. But I see my Mainstage class, which extends Application. It has a start function, which sets up all my on screen do-dads (extended from Nodes and such), calls stage.show()... and then seems to end. When I've done things like call translate functions on my nodes from my user input thread, or from my communication from Max thread, things seemed to have worked. But now I'm thinking I might have been handling that wrong from the ground up. It seems likely that I should be having a "main game loop" (it isn't actually a game, but still, same principle) where I can tell the stage to update all the various nodes with the changes that have happened since the last frame, and try to get everything to update in time for the graphics to render at a reliable frame rate. And yet, I'm just not seeing how to do that. I'm sure this should be obvious, but I'm flat out blanking. And the time crunch is starting to descend... Please, if you can point out some standard way of avoiding this hopefully common newb mistake, I would greatly appreciate it!
    -cullam

    Checkout the documentation on "Pulse" in the JavaFX Archictecture overview which may help clarify some of your questions.
    http://docs.oracle.com/javafx/2.0/architecture/jfxpub-architecture.htm
    In simple terms, as I understand it, the framework will check 60 times a second if anything is dirty and needs repainting. If everything is clean, it will do nothing. If something is dirty, it will repaint it (although the repaint is kind of clever and highly optimized to support region image caching, make use of hardware rendering, etc).
    So you can see that the main rendering loop is essentially hidden from you. Instead you construct a SceneGraph, the system checks regularly whether or not the SceneGraph has changed, and if it has it renders the updated SceneGraph.
    In most JavaFX applications, you have a UI with controls and add event handlers which respond to control input to update the SceneGraph. In such programs, creating a main loop is unnecessary.
    You can set up an animation timeline say at, for example, 30fps (half the pulse rate), then, on every other pulse, nothing will have changed so no redraw will happen. This is only necessary if you are performing an animation or capturing camera input, etc yourself (rather than using a Transition for example).
    Actually, if I get my state changes working properly in a runLater call, do I need to also write a main loop? No, you don't need to write a main loop. Depending on the exact application, you may want one, but if you are already getting events generated by your camera input at 30fps, processing each 30fps from the camera in a runLater call would work fine without creating a loop.
    But you do need to be careful that you don't send too many runLater calls and eventually overload the JavaFX event queue. For example it makes no sense to make more than 60 runLater calls a second to update the scene, because the system will never update the scene more than 60 times a second anyway.
    If you do get a working camera app integrated with JavaFX, please post or blog about it as I am sure many people are interested in such an application.

  • Probably a stupid question, but how do I use an app on my Mac

    Like the heading states ....probably a really dumb question.
    Can I launch an app on my MacBook Pro.  No problems usings apps on my iPhone or iPad.  I just can figure out how to launch an app on my computer!
    Thanks,
    jns999

    It will probably never change, at least not based on Apple's comments on the issue of iOS and OS X convergence to date, though of course none of us can say with any certainty.
    Regards.

  • Probably a stupid question revisited...

    I asked yesterday about downloading the ipod update on a friends computer and then transferring it to mine because she has cable and I have dial up service.
    Now I have another question. Is there any way I can just download the update on her computer and take my flash drive and put the update on my flash drive and take that home and put the file on my computer that way? My friend doesn't have an ipod so I really don't want to have to put itunes on her computer. All I want is to download the update file and that is it. Sorry if this sounds stupid, but I'm not really computer savvy about these things.
    Thanks in advance.
      Windows XP  

    You can just download the iPod updater and update your iPod then just delete the program. You only need to install the updater not iTunes for you to download it.

  • General question about dates

    I'm starting to scan my old slides and negatives and am scratching my head about "fuzzy" dates.  Sometimes it's not clear when a photo was taken, so either a date range, such as 9-12/1970 is used, or maybe something like Early/1970.  How does one handle that situation in pse?

    I maintain a library of historical and family photographs and I have struggled with this challenge for years.  I finally have a solution.  I use IDImager, a digital asset management application used mainly by professional photographers.  It has (parametric) editing capability and some users (like myself) are able to use it exclusively for their digital photo needs.  Others use it in combination with apps like Lightroom, Photoshop, PS Elements.
    It (http://www.idimager.com) does not natively address the fuzzy (unknown or partially known) date problem, but does allow the end user to create and manage custom XMP fields which opens the door to make this problem solvable to the end user.  IDImager is written in Delphi and allows user-created scripts to run within IDImager.  Users can submit scripts to the IDImager Resource Repository to share their scripts with other users.
    I have submitted a collection of scripts and custom XMP definitions to the repository called "HouseOfUlrich toolset for unknown and partial dates".  It is a collection of custom XMP fields and scripts that make it easy to tag and manage photos with "fuzzy" dates within the existing framework of IDI without a major disruption to the workflow. Meaning... it doesn't take much longer(if any) to assign a "partial" date to a photo than to assign an exact one and images are still sortable and searchable without being treated separately from photos will fully known date/times.
    You can download the toolset free from: http://repository.idimager.com/cgi-bin/idi_script_repository.exe?action=scriptDetails&scri ptID=567594c9-1b90-4f94-4641-4fccb60dc8ea  and read the readme file for all the details.  But to summarize, the toolset, without modification supports
    1) a boolean value to indicate the date is unknown/partial (use this unless the FULL date and time is known)
    2) a boolean value to indicate the date is approximate
    3) fields to store year, month, day (and these fields DO support ## - special character to indicate unknown).
    4) scripts that can "convert" traditional EXIF date/time fields to the Custom XMP fields, leaving the original EXIF unchanged, of course.
    IDImager allows for custom XMP to be used in rename functions, so I can employ the custom XMP fields I use to automatically create/change filenames to create naming conventions like:
    [email protected] (to indicate photo taken at 11:23:23 PM on March 3, 2007)
    1910-05-##@##-##-##_circa.jpg (to indicate a photo taken ABOUT May of 1910.)
    192#-12-25@##-##-##.jpg (to indicate a photo taken on Dec 25 sometime in the 1920s.)
    I have chosen to implement using the "approximate" value in combination with months to indicate times of year.  For example, for photos in summer of 1935, I would use Circa (approx value) 07 1935.  But both IDImager and my toolset are open-ended and would allow for users to define and use alternate XMP fields like Early,Mid,Late or Spring,Summer,Fall,Winter.  I choose the numeric values corresponding to months and the "approximate" value because they are more easily lent to other scripting and sorting functions within both IDImager and the operating system.
    Something else that could be implemented, although I have chosen against, is the use of a "date range" using one field for "as early as" and another for "as late as".  I see this method as more trouble than its worth as it would not lend well to sorting, name, searching etc.  I think the ability to set year,month,day all to either known/unknown in combination with defining the entire date as approximate is better.  For rare cases where one wanted to store the fact that a photo was taken as early as/as late as....I would recommend just storing that info as a string in the description field.  For example, I have photos taken of soldier's during WWI.  If it is not possible to determine whether late or early in the war, I would tag it as Circa 1916 (or 1910s).  But could still use the description field to write "taken during WWI (probably 1914 - 1918)".
    One other final note: If Adobe or some other player in the digital photo market does ever create an updated XMP or EXIF schema that support unknown or partially known dates, it will be possible, with IDImager, to migrate the information I store in custom XMP fields to the new standard fields.
    hope these resources help other solve the same challenges I finally overcame.  happy tagging.
    Brian

  • Questions About Data Form

    Hi guys,
    just a general question: When we make a "big" data form, it typically causes performance issues or crashes. My question is, what is limiting the size of the data form? Is it the fact that Essbase has to pull up a lot of data at once? Is it the fact that web applications are limited in capacity? Would just like to get people's thoughts on this general issue.
    Another general, somewhat vague question: IF I did want to make a huge data form, lets just say 10 cost centers, 400 accounts per cost center on the rows and period, a couple of scenarios and years on the columns, would it help if I created a machine dedicated to the planning web app? Would increasing RAM/CPU help ?

    Increasing the RAM will certainly help with forms as large forms can cause the Java application to crash, remember if it is 32bit planning you are restricted on the maximum memory setting, which is 2GB but in reality about 1.4-1.6GB
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Any engineering students here? Question about data plotting

    I was just wondering how you guys plot your data for work. I use Origin in XP all the time, but in OSx i haven't found a good counterpart yet. I need something that can produce plots which i can paste & reopen in MS word documents. I know Excel can do the job to some extent, but I'm looking for something closer to Origin.
    Sorry, I just realized that I probably shouldn't have posted this in the Macbook forum. But, any input will still be appreciated.

    I have to add another voice for Igor Pro. For 2D plotting it's superior to Matlab and it also provides quite a bit of analysis capability (though it is not as capable as Matlab in this area). The program is x-platform and you can easily exchange plots and data between Mac and PC versions of the program. I don't anything about Origin so I don't know if there are filters that can allow direct import/export to Igor Pro.
    When presented with data in my job I approach it this way:
    Tabular data in Excel because of the Pivot Tables and Data Filters. These are very nice tools for large tabular datasets.
    Time-series experimental data in Igor Pro for plotting, exploration, presentation and some analysis. It's easy to write a small programs in Igor Pro that allow customized data exploration. It's actually easier than doing it in Matlab because of the way you can add multiple axes to plots. And this is where I always do plot prep for publication.
    Frequency data or time-series experimental data in Matlab when I need specific Matlab toolboxes (e.g. control system, signal processing, system identification, etc.) Heavy-duty analysis is easier in Matlab -- if you own the toolboxes!
    Although you can do data reduction in either Matlab or Igor Pro (and I've done it in both of them) you're probably better off writing your own data reduction if the datasets get really big (e.g. 100's of MB or GB's per data set).
    The best part is that all 3 of these programs are cross-platform and I frequently move data and analysis programs between PC's and Macs. None of these tools, however, are professional-grade for statistical analysis. For that you still want SAS or SPSS or even R if your head works that way.

Maybe you are looking for