Calendar Class with DateFormat

Hello,
I thought I posted this message before, but I can't find it. I'm dead tired so please let me know if I make this too short to follow. I am making a GUI program using BreezySwing (the only GUI class I know), and I am going to have it use the time to tell me how far away certain events that I input are. After digging in the documentation for a few hours :( and playing around with it to get a feel, and I ended up coming up with a line of code that gives the time with Calendar.VARIABLE variables (i.e. HOUR, MINUTE, SECOND, etc). I am putting those variables into a message in a text area. The problem, which persists even when I put a Calendar.getInstance() in, is that it always returns/displays the same time. I wondered about it caching something, so I rebooted and even shut down overnight and still SAME TIME.
Any ideas? I am just doing this for fun from my year of Java in high school a couple years ago for now but I am leaning toward majoring in CS now in college so I will want to get a thorough knowledge (if that matters in your response).
Thanks in advance,
Shaun

You'll probably get a better response if you post the
code you've tried so far...I know you want to help. Let me just advise you that bringing up days-old threads are somewhat an exercise in futility, and also be aware that by looking at the posting history you can see that the OP duplicated this and received responses on the duplicate.

Similar Messages

  • Calendar function with DateFormat

    Hello,
    I am trying to make a program that will use the time to tell me how much time I have until certain events that I enter. I use JCreator and I'm using the BreezySwing class for my GUI stuff since that's really the only GUI class I'm familiar with. After a few hours of poking around trying to get a feel for how the 2 classes work together by digging around in the documentation, I finally came up with a simple line to just tell the time. Basically it displays the time into a text area with Calendar.VARIABLE variables (i.e. DAY,HOUR,SECOND, etc.).
    It kind of worked the first time, but the problem is that it got a Calendar instance the first time I ran it, and then it still is continuing to use that same instance every time I run it and no matter how I tweak it. I tried putting:
    Calendar.getInstance() and putting that into a variable and using Format to format that variable but it still doesn't change the time at all. So I was thinking maybe it cached something and was using that, so I rebooted. No change. I shut down for the night and now again it is still the same.
    Any ideas?

    This may help you.
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import javax.swing.JOptionPane;
    public class CalculateDay {
        public static void print_date(String s)
            System.out.println(s);
        public static void print_date()
            System.out.println();
        public static void doDate()
                  /*CURRENT DATE & TIME*/
            print_date("Current Date/Time:");
            print_date();
            Date now=new Date();
            print_date("  - : "+now);
                 /*Calculate DAY*/     
            print_date();
            print_date("PARSE STRING TO DATE");
            print_date();
            Date   newDate;
            String inputDate = JOptionPane.showInputDialog("Enter input as\n yyyy-MM-dd format");
            SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
            System.out.print(" - : " + inputDate + " parses as ");
            try {
                newDate = formatter.parse(inputDate);
                print_date(newDate + ".");
            } catch (ParseException e) {
                print_date("Unparseable using " + formatter + ".");
            print_date();
        public static void main(String[] args) {
            doDate();
            System.exit(0);
    }

  • Problem with Calendar Class... Help please

    I have a simple program that use a Calendar class to know the week of year from a Date.
    Calendar cal = Calendar.getInstance();
    cal.set(2001,5,15);
    cal.setFirstDayOfWeek(Calendar.MONDAY);
    cal.setMinimalDaysInFirstWeek(7);
    System.out.println("week of year = "+cal.get(Calendar.WEEK_OF_YEAR));
    The problem is that in Windows OS the program work good but when I run the program on UNIX
    week_of year show Zero. The same for DAY_OF_YEAR and WEEK_OF_MONTH

    So the difference is actually the Java version, not the operating system, right? I'm not surprised that a version as old as 1.1.3 has bugs in Calendar. Upgrade.

  • Integrating calendar server with messaging server

    hi all,
    i have installed messaging server but am not able to bind messaging server and calendar server together.the calendar server does not start with ./start-cal command.i am attaching the ics.conf file below.
    !!!! ics.conf Parameter Specification: You can have three kinds of records
    !!!! #1) Uncommented Key: Starts with alphabet [a-z] and in the form a="b"
    !!!! #2) Commented key: Start with !!<alphabet> OR !![a-z]
    !!!! And in the form !!a="b" (min 7 chars length)
    !!!! #3) Commented Lines: Starts with ! But not with !![a-z]
    !!!! #4) Records other than types #1, #2, #3 will be ignored or won't be
    !!!! processed e.g. blank lines, lines starting with non-alphabets etc..
    !!!! All these parameters are SINGLE valued
    !!!! Imaginary Domain Names siroe.com, varrius.com, florizel.com, and sesta.com
    !!!! are used in the examples below.
    ! Description sent with insufficient disk space messages.
    alarm.diskstat.msgalarmdescription = "percentage calendar partition diskspace available"
    ! Number of seconds between monitoring disk space.
    alarm.diskstat.msgalarmstatinterval = "3600"
    ! Percentage of available disk space that triggers sending a warning message.
    alarm.diskstat.msgalarmthreshold = "10"
    ! Whether alarm.diskavail.msgalarmthreshold is above or below percentage. -1 is below and 1 would be above.
    alarm.diskstat.msgalarmthresholddirection = "-1"
    ! Number of hours between sending warning messages about insufficient disk space sent out.
    alarm.diskstat.msgalarmwarninginterval = "24"
    ! Specifies the SMTP host for server alarms.
    alarm.msgalarmnoticehost = "sonlinux.bg2iop.com"
    ! Specifies the SMTP port for server alarms.
    alarm.msgalarmnoticeport = "25"
    ! Who are server alarms sent to?
    alarm.msgalarmnoticercpt = "[email protected]"
    ! When server alarms are sent, who is the sender?
    alarm.msgalarmnoticesender = "[email protected]"
    ! Default is "From: %s\nTo: %s\nSubject: ALARM: %s of \"%s\" is %u\n\n%s\n"
    alarm.msgalarmnoticetemplate = ""
    ! Description sent with no service response messages.
    alarm.responsestat.msgalarmdescription = "calendar service not responding"
    ! Number of seconds between monitoring services.
    alarm.responsestat.msgalarmstatinterval = "3600"
    ! Only trigger sending a warning message if no service response.
    alarm.responsestat.msgalarmthreshold = "100"
    ! Whether alarm.responsestat.msgalarmthreshold is above or below percentage. -1 is below and 1 would be above.
    alarm.responsestat.msgalarmthresholddirection = "-1"
    ! Number of hours between sending warning messages about no service response sent out.
    alarm.responsestat.msgalarmwarninginterval = "24"
    ! Enable (yes) or Disable (no) browser cache for performance reasons.
    browser.cache.enable = "no"
    ! Retry time in seconds after a recoverable alarm delivery error.
    caldb.berkeleydb.alarmretrytime = "300"
    caldb.berkeleydb.archive.enable = "0"
    ! Interval between hotbackup or archivebackup in seconds
    caldb.berkeleydb.archive.interval = "120"
    ! Maximum number of days of archivebackup
    caldb.berkeleydb.archive.maxdays = "6"
    ! Minimum number of days of archivebackup
    caldb.berkeleydb.archive.mindays = "3"
    caldb.berkeleydb.archive.path = "/var/opt/sun/calendar/csdb/archive"
    ! Percentage threshold of allowable disk space usage
    caldb.berkeleydb.archive.threshold = "70"
    ! Seconds between checkpointing.
    caldb.berkeleydb.checkpointinterval = "60"
    ! Remove checkpoint files after synchronized? (yes/no)
    caldb.berkeleydb.circularlogging = "yes"
    ! Milliseconds between checking database deadlocks.
    caldb.berkeleydb.deadlockinterval = "100"
    ! Enable more advanced notifications - replyevent/refreshevent/replytodo/refreshtodo considered
    ! as advanced topics. By default, all these notifications will be published to
    ! modifyevent and modifytodo respectively. If it is enabled modifyevent will get only
    ! organizer updates to components and attendees replies and the refreshes triggered by replies
    ! to components will be published to the respective topics. (yes/no)
    caldb.berkeleydb.ensmsg.advancedtopics = "no"
    ! Create an ENS message when a calendar is created? (yes/no)
    caldb.berkeleydb.ensmsg.createcal = "no"
    ! Create an ENS message when an event is created? (yes/no)
    caldb.berkeleydb.ensmsg.createevent = "no"
    ! Create an ENS message when a task is created? (yes/no)
    caldb.berkeleydb.ensmsg.createtodo = "no"
    ! Create an ENS message when a calendar is deleted? (yes/no)
    caldb.berkeleydb.ensmsg.deletecal = "no"
    ! Create an ENS message when an event is deleted? (yes/no)
    caldb.berkeleydb.ensmsg.deleteevent = "no"
    ! Create an ENS message when a task is deleted? (yes/no)
    caldb.berkeleydb.ensmsg.deletetodo = "no"
    ! Create an ENS message when a calendar is modified? (yes/no)
    caldb.berkeleydb.ensmsg.modifycal = "no"
    ! Create an ENS message when an event is modified? (yes/no)
    caldb.berkeleydb.ensmsg.modifyevent = "no"
    ! Create an ENS message when a task is modified? (yes/no)
    caldb.berkeleydb.ensmsg.modifytodo = "no"
    ! Initial size of the in-memory Event Notification Server message queue. This queue stores all ENS messages other than alarm reminders.
    caldb.berkeleydb.ensmsg.qsize = "10000"
    ! Create an ENS message when an event is refreshed? (yes/no)
    caldb.berkeleydb.ensmsg.refreshevent = "no"
    ! Create an ENS message when a task is refreshed? (yes/no)
    caldb.berkeleydb.ensmsg.refreshtodo = "no"
    ! Create an ENS message when an event is replied? (yes/no)
    caldb.berkeleydb.ensmsg.replyevent = "no"
    ! Create an ENS message when a task is replied? (yes/no)
    caldb.berkeleydb.ensmsg.replytodo = "no"
    ! Create an ENS message when a scheduling request written to the calendar is deleted? (yes/no)
    caldb.berkeleydb.ensmsg.schedreq = "no"
    ! Physical path location of database event, task, and alarm files.
    caldb.berkeleydb.homedir.path = "/var/opt/sun/calendar/csdb"
    caldb.berkeleydb.hotbackup.enable = "0"
    ! Maximum number of days of hotbackup
    caldb.berkeleydb.hotbackup.maxdays = "6"
    ! Path for archivebackup
    !caldb.berkeleydb.archive.path
    ! Path for hobackup
    !caldb.berkeleydb.hotbackup.path
    ! Enable/disable of archivebackup feature, yes/no
    !caldb.berkeleydb.archive.enable
    ! Enable/disable of hotbackup feature, yes/no
    !caldb.berkeleydb.hotbackup.enable
    ! Minimum number of days of hotbackup
    caldb.berkeleydb.hotbackup.mindays = "3"
    caldb.berkeleydb.hotbackup.path = "/var/opt/sun/calendar/csdb/hotbackup"
    ! Percentage threshold of allowable disk space usage
    caldb.berkeleydb.hotbackup.threshold = "70"
    ! Max megabytes of checkpoint file.
    caldb.berkeleydb.logfilesizemb = "10"
    ! Max threads of database.
    caldb.berkeleydb.maxthreads = "10000"
    ! Megabytes of shared memory.
    caldb.berkeleydb.mempoolsizemb = "4"
    ! Time before which to purge deletelog
    caldb.berkeleydb.purge.deletelog.beforetime = "86400"
    ! Time interval between auto purge of deletelog
    caldb.berkeleydb.purge.deletelog.interval = "86400"
    ! If "yes", open the database in readonly mode
    caldb.berkeleydb.readonly = "no"
    ! Email of calendar database administrator.
    caldb.calmaster = "[email protected]"
    ! Seconds between checkpointing.
    caldb.cld.cache.checkpointinterval = "60"
    ! Remove checkpoint files after synchronized? (yes/no)
    caldb.cld.cache.circularlogging = "yes"
    !service.calendarsearch.ldap.primaryownersearchfilter = "(&(|(uid=*%s*)(cn=*%s*))(objectclass=icsCalendarUser))"
    ! Enables ("yes") or disables ("no") cld db cache
    caldb.cld.cache.enable = "yes"
    ! Physical path location of cache database
    caldb.cld.cache.homedir.path = "/var/opt/sun/calendar/csdb/cld_cache"
    ! Max megabytes of checkpoint file.
    caldb.cld.cache.logfilesizemb = "10"
    ! Max threads of database.
    caldb.cld.cache.maxthreads = "1000"
    ! Megabytes of shared memory.
    caldb.cld.cache.mempoolsizemb = "4"
    ! Type of Calendar Lookup Database plugin to use ("local" "algorithmic" or "directory").
    caldb.cld.type = "local"
    ! Count data base statistics? (yes/no)
    caldb.counters = "yes"
    ! Maximum number of calendars with counters.
    caldb.counters.maxinstances = "100"
    ! Maximum number of backlogged requests before the server obtains a new network connection.
    caldb.dwp.connthreshold = "1"
    ! Initial number of connections for DWP client to make to each DWP host.
    caldb.dwp.initconns = "2"
    ! Initial number of threads for handling DWP requests.
    caldb.dwp.initthreads = "2"
    ! Maximum number of connections allowed to a DWP server.
    caldb.dwp.maxcons = "1000"
    ! Maximum number of threads to service HTTP requests in csdwpd.
    caldb.dwp.maxthreads = "1000"
    ! Specifies if the server performs MD5 hash checking of all DWP requests.
    caldb.dwp.md5 = "n"
    ! IP address of a specified DWP server.
    !!caldb.dwp.server.[hostname.xyz.com].ip = "a.b.c.d"
    ! Port number of a specified DWP server (Algorithmic CLD only).
    !!caldb.dwp.server.[hostname.xyz.com].port = "59779"
    ! Default DWP server (LDAP CLD only), used if user's icsDWPhost value does not exist.
    !!caldb.dwp.server.default = "hostname.xyz.com"
    ! Stack size for DWP threads.
    caldb.dwp.stacksize = "65536"
    ! Process alarms on the alarm queue -- that is, store them in the alarm queue when an event/todo is saved
    caldb.serveralarms = "1"
    ! Timeout for contacting ENS. If no response, we assume ENS is not running
    caldb.serveralarms.acktimeout = "30"
    ! Dispatch -- that is, enable alarm dispatching. When an alarm trigger time arrives send out email or ENS message.
    caldb.serveralarms.dispatch = "yes"
    ! Enable binary alarms. Used by csnotifyd and csadmind. (default: yes)
    !caldb.serveralarms.binary.enable = "yes"
    ! Binary alarm url. Used by csnotifyd and csadmind. (default: enp:///ics/alarm)
    !caldb.serveralarms.binary.url = "enp:///ics/alarm"
    ! Custom alarm url. Use this to get xml or calendar mime type contents
    !caldb.serveralarms.url = "enp:///ics/customalarm"
    ! Custom alarm url contenttype. (text/xml or text/calendar)
    !caldb.serveralarms.contenttype = "text/calendar"
    ! Dispatch type for Calendar Server alarms ("ens" o "smtp").
    caldb.serveralarms.dispatchtype = "ens"
    ! Initial number of threads for the Event Notification Server.
    caldb.serveralarms.initthreads = "0"
    ! Specifies how long, in seconds, the server will continue to try reconnecting to ENS before giving up. -1 means forever.
    caldb.serveralarms.maxretrytime = "-1"
    ! Maximum number of threads for the Event Notification Server
    caldb.serveralarms.maxthreads = "10"
    ! Time to sleep, in seconds, after a timeout connecting to ens before making another attempt to connect to ens
    caldb.serveralarms.retryinterval = "5"
    ! Stack frame size for Event Notification Server threads.
    caldb.serveralarms.stacksize = "65536"
    ! Total time, in seconds, to retry connecting to ENS on startup.
    caldb.serveralarms.startupretrytime = "30"
    ! Send alarms to this SMTP host.
    caldb.smtphost = "sonlinux.bg2iop.com"
    ! Specifies the directory in cal/bin/config containing the localized version of the files used to format email notifications.
    caldb.smtpmsgfmtdir = "en"
    ! Specifies the SMTP port.
    caldb.smtpport = "25"
    ! Event reminder format file.
    calmail.eventreminder.fname = "mail_eventreminder.fmt"
    ! Event cancellation format file.
    calmail.imipeventcancel.fname = "mail_eventcancel.fmt"
    ! Event CANCEL NOTIFICATION message format file
    calmail.imipeventcancelnotification.fname = "mail_eventcancelnotification.fmt"
    calmail.imipeventcancelnotificationrecur.fname = "mail_eventcancelnotificationrecur.fmt"
    ! Event NOTIFICATION message format file
    calmail.imipeventnotification.fname = "mail_eventnotification.fmt"
    calmail.imipeventnotificationrecur.fname = "mail_eventnotificationrecur.fmt"
    ! Event notification format file.
    calmail.imipeventpublish.fname = "mail_eventpublish.fmt"
    ! Event REPLY message format file
    calmail.imipeventreply.fname = "mail_eventreply.fmt"
    ! Event REQUEST message format file
    calmail.imipeventrequest.fname = "mail_eventrequest.fmt"
    ! Task cancellation format file.
    calmail.imiptodocancel.fname = "mail_todocancel.fmt"
    ! Task notification format file
    calmail.imiptodopublish.fname = "mail_todopublish.fmt"
    ! Task REPLY message format file
    calmail.imiptodoreply.fname = "mail_todoreply.fmt"
    ! Task REQUEST Message format file
    calmail.imiptodorequest.fname = "mail_todorequest.fmt"
    ! Task reminder format file.
    calmail.todoreminder.fname = "mail_todoreminder.fmt"
    ! Anonymous login CALID.
    calstore.anonymous.calid = "anonymous"
    ! Does server support only two privacy types for components - PRIVATE (acts as confidential) /PUBLIC instead of PRIVATE/CONFIDENTIAL/PUBLIC
    calstore.binaryprivacy.mode = "no"
    ! When creating new calendar of user, whether to lowercase calendar or not
    ! Also, when looking up calendar, whether to lowercase or not
    calstore.calendar.create.lowercase = "n"
    ! For a newly created calendar, set the ACL to this
    calstore.calendar.default.acl = "@@o^a^r^g;@@o^c^wdeic^g;@^a^fs^g;@^c^^g;@^p^r^g"
    ! Definition of the "owner" acl
    calstore.calendar.owner.acl = "@@o^a^rsf^g;@@o^c^wdeic^g"
    ! Timezone ID used when importing files.
    calstore.default.timezoneID = "America/New_York"
    ! Whether to filtering the private/confidential events on queries to server
    calstore.filterprivateevents = "yes"
    ! Is user's default calendar included in user's freebusy-calendar-list or not
    calstore.freebusy.include.defaultcalendar = "yes"
    ! Can user's default calendar be removed from user's freebusy-calendar-list or not
    calstore.freebusy.remove.defaultcalendar = "no"
    ! Maximum number attendees to be allowed in a LDAP group when expanding event. Value of 0 means expand group entirely.
    calstore.group.attendee.maxsize = "0"
    ! Maximum number of events created by recurrence
    calstore.recurrence.bound = "60"
    ! Is user's default calendar included in user's subscribed-calendar-list or not
    calstore.subscribed.include.defaultcalendar = "yes"
    ! Can user's default calendar be removed from user's subscribed-calendar-list or not
    calstore.subscribed.remove.defaultcalendar = "no"
    ! For attendee calendar lookup, when encountering string that looks like (jdoe OR jdoe:tv), treat string as a userid (uid) when looking-up in Directory.
    ! Value can be {uid | cn | gid | res | mailto | cap}
    calstore.unqualifiedattendee.fmt1.type = "uid"
    ! For attendee calendar lookup, when encountering string that looks like ([email protected]) (has @ sign), treat string as a mailto address when looking-up in Directory
    ! Value can be {uid | cn | gid | res | mailto | cap}
    calstore.unqualifiedattendee.fmt2.type = "mailto"
    ! For attendee calendar lookup, when encountering string that looks like (John Doe) (has space), treat string as a common name (cn) when looking-up in Directory
    ! Value can be {uid | cn | gid | res | cap}
    calstore.unqualifiedattendee.fmt3.type = "cn"
    ! Maximum number of results returned from LDAP lookup from user search. Value of 0 means no limit.
    calstore.userlookup.maxsize = "200"
    ! Is Server in Virtual Domain mode or not (this affects 5.0p2 only)
    calstore.virtualdomain.mode = "n"
    ! Enable (y) or disable (n) Access Control plugin.
    csapi.plugin.accesscontrol = "n"
    ! Load only the plugin specified in csapi.plugin.authentication.name? (y/n)
    csapi.plugin.authentication = "n"
    ! Enable (y) or disable (n) Calendar Lookup Database plugins.
    csapi.plugin.calendarlookup = "n"
    ! Specifies the name of a specific Calendar Lookup Database plugin to load. If "*", load the plugins.
    csapi.plugin.calendarlookup.name = "*"
    ! Load only the plugin specified in csapi.plugin.database.name or if not specified, load all database plugins in alphabetical order.
    csapi.plugin.database = "y"
    ! Only load this specific plugin if csapi.plugin.loadall is no and csapi.plugin.database is yes.
    csapi.plugin.database.name = "cs_caldb_berkeley10"
    ! Load only the plugin specified in csapi.plugin.datatranslator.name? (y/n)
    csapi.plugin.datatranslator = "y"
    ! Only load this specific plugin if csapi.plugin.loadall is no and csapi.plugin.data translator is yes.
    csapi.plugin.datatranslator.name = "cs_datatranslatorcsv10"
    ! Enable (y) or disable (n) database-to-output format plugins.
    csapi.plugin.dbtranslator = "y"
    ! If "*", then load all the database-to-output format plugins. If a library name, only load that plugin. csapi.plugin.dbtranslator must be set to "yes" to load plugin
    csapi.plugin.dbtranslator.name = "*"
    ! Load all plugins found in the plugins directory? (y/n)
    csapi.plugin.loadall = "n"
    ! Load only the plugin specified in csapi.plugin.userprefs.name? (y/n)
    csapi.plugin.userprefs = "n"
    ! Load only this plugin if csapi.plugin.loadall is no and csapi.plugin.userprefs is yes.
    !!csapi.plugin.userprefs.name = "plugin_name"
    ! Enable the RSA Cypher Encryption Family Services for SSL
    !!encryption.rsa.nssslactivation = "on"
    ! Define the Certificate name for the RSA Cypher Encryption Family
    !!encryption.rsa.nssslpersonalityssl = "SampleSSLServerCert"
    ! Define the location of the RSA Cypher Encryption Family token
    !!encryption.rsa.nsssltoken = "internal"
    ! Specifies if the auto refresh feature is enabled or disbaled. (yes/no)
    gse.autorefreshreplystatus = "yes"
    ! Specifies (in seconds) how long to wait before the server scans the schedule queue for incoming jobs.
    gse.belowthresholdtimeout = "3"
    ! Maximum number of concurrent threads the server uses to process the schedule queue.
    gse.maxthreads = "10"
    ! Maximum length of time the server will retry to complete a group scheduling job.
    gse.retryexpiredinterval = "86400"
    ! Specifies (in seconds) how often the server will retry a previous failing job.
    gse.retryinterval = "300"
    ! Maximum stack size (in bytes) of a group scheduling thread
    gse.stacksize = "65535"
    ! global flags to control notification for invitation and cancellation.
    ! Enable (yes) Disable (no), default is enabled. Notification will be sent.
    ine.cancellation.enable = "yes"
    ine.invitation.enable = "yes"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.basedir.path = "/opt/sun"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.betamajorversion = "0"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.betaminorversion = "0"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.caldbtype = "local"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.csinstalldir.path = "/opt/sun"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.csprodbasedir.path = "/opt/sun/calendar"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.csprodclassesdir.path = "/opt/sun/calendar/classes"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.csproddir.path = "/opt/sun"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.csprodjavadir.path = "???"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.csprodlibdir.path = "/opt/sun/calendar/lib"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.csprodtoolsdir.path = "/opt/sun/calendar/tools"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.csproduicustdir.path = "/opt/sun/calendar/uicust"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.fullversion = "6.0"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.majorversion = "6"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.minorversion = "0"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.osarch = "i386"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.osname = "linux"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.ostype = "unix"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.osversion = "2.6.9-22.el"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.patchversion = "0"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.serveruidpassword = "icsuser"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.startupafterinstall = "no"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.startupatboot = "no"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.userauthtype = "ldap"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.userprefstype = "ldap"
    ! WARNING: DO NOT CHANGE OR DELETE THE FOLLOWING CONFIGURATION FILE ENTRY.
    ! THIS ENTRY WAS AUTOMATICALLY GENERATED BY THE INSTALLATION PROGRAM.
    ! IT IS USED ONLY BY THE INSTALLATION AND UNINSTALLATION PROGRAMS.
    ! THIS ENTRY IS COMPLETELY IGNORED BY ALL OF THE INSTALLED PRODUCTS.
    ! IF YOU CHANGE OR DELETE THIS ENTRY, THE INSTALLATION AND UNINSTALLATION
    ! PROGRAMS COULD FAIL THE NEXT TIME THEY ARE RUN.
    install.version = "6.0"
    ! Base DN for LDAP authentication. If not specified, use local.ugldapbasedn.
    local.authldapbasedn = "o=bg2iop.com, dc=bg2iop,dc=com"
    ! Bind credentials (password) for user specified in local.authldapbinddn.
    local.authldapbindcred = "admin123"
    ! DN used to bind to LDAP authentication host to search for user's dn.
    local.authldapbinddn = "cn=Directory Manager"

    Hi Venigalla,
    You can implement a federated portal network (FPN) using the SAP NetWeaver platform to share content between portals.
    A federated portal network allows organizations with distributed portal installations, both SAP and non-SAP, to provide a single portal access point per user to portal information, services and applications distributed on portals in the network.
    WSRP-based application sharing (FPN Mode used for for integrating content between SAP and Non SAP portals) :-
    -->     Content administrators on a SAP NetWeaver consumer portal can integrate WSRP portlets (i.e. iViews) from remote non-SAP portals into SAP NetWeaver Portal.
    -->      SAP NetWeaver developers can create WSRP compliant iViews that can be consumed in non-SAP consumer portals.
    You may kindly go through the below link, should be helpful:
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/23fb36cad10d23e10000000a1553f7/frameset.htm
    Regards,
    Anagha

  • Problem vi� Calendar class

    Hi.
    I have a class in my project that gets the current date and time using the Calendar class. But there is a little problem. The month seems to be one month late.....now it should be 6 (June) but it displays 5 as if it is May. A similar thing happens with the hour. It is always one hour ahead of the time eg. if it is 18:54 then the time says 19:54.....does someone know what the problem is????

    Read the javadocs about the java.util.Calendar and/or java.util.Date class. Months are 0-based, not 1-based, so 0==January.

  • Discussing Calendar class

    I had a quickie utility program to write for a friend of mine and seeing as how I am incredibly new to Java I came here to look for answers. Doing a search on adding to days in an object of the Calendar class, I've made a loose obersvation based on answers.
    What I needed to do for my program was to simply increment the days. The answers I found on the forum were to use Calendar.add(Calendar.DATE, 1). However, the issue I found was the month was not being incremented and since this was a quick and dirty little utility, i didn't want to have to write a whole bunch of other code to check the date in order to increment the month.
    Or am I missing something?
    A note on the program I wrote. It was a simple command line program and the first argument was the beginning date, and the second argument was the ending date in the format of "mm/dd/yy". Also keep in mind there is other processing and code, I'm only posting what I did with the object of Calender class.
    What I did with my program was the following:
    ********** Begin Code Snippet **********
    Date bdate = new Date(Date.parse(args[0]));
    Date edate = new Date(Date.parse(args[1]));
    Date cdate = new Date(Date.parse(args[0]));
    Calendar begindate = Calendar.getInstance();
    begindate.setTime(bdate);
    Calendar enddate = Calendar.getInstance();
    enddate.setTime(edate);
    Calendar currdate = Calendar.getInstance();
    currdate.setTime(cdate); // currdate was init to begin date and will be the variable incremented
    /* other processing goes here */
    numdays = enddate.get(Calendar.DAY_OF_YEAR) - begindate.get(Calendar.DAY_OF_YEAR);     
    for (int i = 0; i <= numdays; i++)
         currdate.add(Calendar.DAY_OF_YEAR, 1);
         month = currdate.get(Calendar.MONTH) + 1;
         day = currdate.get(Calendar.DAY_OF_MONTH);
         year = currdate.get(Calendar.YEAR);
         dateString = month + "/" + day + "/" + year;
         System.out.println(dateString);
    ********** End Code Snippet **********
    Now, this works in that when I print out the dateString, the month is incremented and the day of the month gets reset to the first day when a new month is started.
    The purpose of this post is to discuss why this is wrong. Now, for the purposes of the little utility program I wrote, this is more than sufficient because all dates concerned were within the same year. (07/09/01 to 12/31/01 to be exact.)
    However, I decided to play around with this and enter dates that would span the New Year. This did not work because the variable "numdays" ends up being in the negative and the for loop does not process properly.
    Other than that issue, why is it wrong to increment the Calendar.DAY_OF_YEAR? Why is it recommended that the Calendar.DATE field is incremented? And what other processing must be done to get the month to roll over into the next month when the date changes from the 30th (or 31st or 28th, or 29th for leap years) to the 1st?
    -- Jayne

    Hi !
    Just wanted to say few things. First Calendar class's add method is an abstract method
    only (check API specification). Which means its not a concrete method and does NOTHING. You should instead use GregorianCalendar's add method . Secondly months and years do get incremented. You have to be careful because months start from 0 to 11 and not from 1 to 12.
    Here is a piece of code(a method) that adds 7 days to a dateString, you can try out :
         public void getDate(String dateStr)
              GregorianCalendar dateNextWeek = new GregorianCalendar();
              SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd");     
              try {
                   dateNextWeek.setTime(formatter.parse(dateStr));          
              } catch (Exception ex) {
                   ex.printStackTrace();
              int day = dateNextWeek.get(Calendar.DAY_OF_MONTH);          
              dateNextWeek.add(Calendar.DATE, 7); //adds 7 days
              System.out.println("day = "
    + dateNextWeek.get(Calendar.DAY_OF_MONTH));
    //month begins from 0
              System.out.println("Month = " + dateNextWeek.get(Calendar.MONTH) + 1);
              System.out.println("Year = " + dateNextWeek.get(Calendar.YEAR));                    
    Hope it helps u !
    regards
    Prasanna

  • I am using Calendar class, and want to see if a date is older then 24 hours

    i have a Calendar class instance, and i want to test if the current date & time is older then 24 hours. i have been playing with for 2 hours. anyone know how to do this?

    One way is to call .getTime().getTime() (yes, that's 2 of 'em) on the Calendar object, which converts the Calendar's time to a milliseconds value which can be compared to System.currentTimeMillis()
    The two times are within 24 h of each other if the ms values differ by less than 86 400 000.

  • Calendar class reuse on mutiple fields

    I have a form based on a table. There are two date fields on this form. I have followed the instructions in the online help to reuse the calendar class. The last statement in the help file tells me to create a key-listval trigger for each field that I would like to associate with the calendar class. I call the Date_LOV.Get_date() function in the two key-listval triggers. My problem is that when I run the form and click on one of the date fields, the calendar pops up correctly and places the return value in the correct date field. But if I then go to the other date field, and press F9, the trigger fires (I put an alert in both triggers to prove this) but the calendar does not appear. If I close the form , re-run it, and navigate to the other date field first, the calendar appears correctly, but when I go to the first date field, the trigger fires but the calendar does not appear. When I have the form in enter query mode, the calendar never works. Similarly, when I type other fields first and then go to the date fields, neither calendar works. The enter query mode seeting on the key-listval triggers are set to yes. How can I make this calendar work correctly for both fields?

    According to the API docs for Calendar:
    "set(f, value) changes field f to value. In addition, it sets an internal member variable to indicate that field f has been changed. Although field f is changed immediately, the calendar's milliseconds is not recomputed until the next call to get(), getTime(), or getTimeInMillis() is made."

  • How can I use different calendars associated with different emails to see appointmen​ts separately​?

    I have 3 emails accounts on my Blackberry curve. I want to use different calendars for different type of reminders/appointments. How can I do that? In calendar I pressed menu key and then clicked on select calendar, choose one email address (email 1) then entered an alarm but now if I go to a different calendar associated with different email ( email 2), it also shows me that alarm which I entered in email 1 calendar. Thanks for help

    Don't have LV handy to open the old code, but I did read through the thread you referenced.  It sounds like the example configured 2 counters to create the variable-freq finite pulse train and configured a 3rd counter to count the # steps generated as verification.   That 3rd counter would be a problem for you as there is no internal timing signal connection between your 2 USB devices.  You would need to run a physical wire connection and change some of the config code to match.  Alternately, you could just delete all the code associated with the 3rd counter for now because it isn't strictly necessary.
    Further advice/questions:  Are you planning on a pure sine wave of frequency such that you oscillate with both positive and negative velocity (example: varying from -1000 to +1000 Hz clockwise)?  Or is there a nominal average frequency with a small sine wave superimposed (example: nominal of 1000 Hz clockwise, variation of +/- 50 Hz)?
    I *think* you may be dealing with more of a continuous pulsetrain situation, which is actually much simpler.  You would only need 1 counter/timer, though you would still perform the freq changes in a timed loop which uses the pulsetrain as its timing source.  You'd just need to keep track of your total elapsed time so you could figure out the right sinusoidal freq value at the moment you're ready to update it.
    Another subtlety to watch out for if you're oscillating about 0 velocity  -- don't try to create a frequency that is lower than the rate at which you need to update.  Also, with steppers you may have mechanical stability issues at low freqs like 10's to low 100's of Hz.    These kinds of things may need to be managed as special cases which force you to deviate from a "pure" sine wave.
    -Kevin P.

  • How do I write an external class with global constants?

    Hi you all !
    First I want to explain what exactly I want to do:
    I have an application that should run in different resolutions. The app runs fullscreen, and I don't use Layouts or something, just a single Frame with a Graphics Object.
    Now to handle the different resolutions, I want to write an external class with some constants to use. The usage in my main Class should be something like this:
    public
    class blah
    private Constants myConstants;
    public blah()
    if (highResolution)
    myConstants = new hiResConstants();
    else
    myConstants = new loResConstants();
    System.println(String.valueOf(myConstants.SCREEN_WIDTH);
    }or somthing like that. The important fact is that I can choose the constants at runtime and that I am NOT forced to use methods to get the values, cause something like
    System.println(String.valueOf(myConstants.getScreenWidth());sux if you have methods using 5 or more parameters.
    Anybody out there who understood my problem and can help me??? PLEASE?
    best regards,
    Skippy

    First, what's so much worse about
    System.println(myConstants.getScreenWidth());
    than
    System.println(myConstants.ScreenWidth);
    Is the extra five characters really that bad? (Note
    you don't need the String.valueOf method call.)Well actually it was a wrong example I gave here, but it's not the call that makes me shake but the implementation:
    public int screenWidth = 1024;vs.
    public
    int getScreenWidth()
    return 1024;
    }Here it makes a bigger difference, even when you think of managing about 100 or even more constants.
    Second, why do you have methods that take five or more
    parameters!?Well, maybe this example show up what I mean:
    if (cursorIsInArea(100,100,200,200,areaId))
    doSomeStuff();Ok, I could use Rectangles here, but if you think of the timing here (I draw 30 frames / sec and this check comes about every frame or the animation would be choppy) I refuse to create an Object everytime I make this call.
    Btw: Is it worth thinking about the time of execution like I did in this example? OO is a neat thing, but is it that fast?
    I don't think isCursorInArea(new Rectangle(100,100,200,200),areaId) is such a great idea, but I might be wrong.
    It sounds like you're trying to compound a bad design
    with an even worse design for no good reason!Well, I'm not that experienced Java programmer to judge about that, but I (and my profs at university too) found my codes well structured and designed so far.
    Skippy
    PS: the string.valueOf(123) call came from cut&paste:
    system.out.println(string.valueOf(number1)+string.valueOf(number2));Try this without the function.... ;-)

  • Enhance standard class with event handler method

    In trying to enhance a standard class with a new event handler class, I find that the ECC 6.0 EHP4 system does not appear to recognise the fact the method is an event handler method.  The specific example is a new method to handle the event CL_GUI_ALV_GRID->USER_COMMAND. 
    I notice that the flag called Active has not been ticked - see image below.  Perhaps this is the reason why the event handler is not being triggered.
    Note that there is an event handler for the same event in the standard class which obviously is executed as expected.  Any ideas on limitations in the system or I am missing a step?
    Thanks
    John

    Thank you for your replies.
    There is a bug in the ALV handler of a standard SAP class (when executed in ITS WebGUI) and I was hoping to create a custom event handler as an Enhancement to execute some custom code to sort of "handle the bug". 
    I agree - ideally it should be done in a Z class but that will not give me access to the object methods and attributes of the enhanced class.
    Cheers,
    John

  • How to import or sync Exchange server data like Calendar, Contacts with a web application or web service

    How to import or sync Exchange data like Calendar, Contacts with a web application or web service.
    1. Is there any API to import contacts and calendar (tasks and events) from exchange server to my calendar in web application using web services or http request. the user would have provided the username and password for his exchange account.
    2. Is there any licensing involved to communicate with exchange server for its data.
    thanks in advance 

    I am bit lost here; i have my exchange credentials, how (or) can i use the above mentioned solution for windows application or web services. can you please point in the right direction. my requirement is this: how to sync exchange data with a third party
    app or webapp(my development) using EWS. how to start with, starting point and steps to do[just overview ;)].

  • How to create a Calendar Class in Universe.

    I want to create a Calendar class which will further contain Year,Quarter,Month,Day,Week Objects which can be used at report level.
    In our database we have different dates in " DD/MM/YYYY:hh:min:ss " format.
    I would like to know if this can be used to create a new Calendar Object or do I need a different table in DB like Calendar look up table provided in sample efashion universe?
    Help appreciated.

    Hi,
    Sorry for the delay in coming back - I had no access yesterday.
    I am not sure what you mean. If you have a lookup table, then you create views/aliases of this table for each of the dates you want to use it for.
    So f your transaction record contains original date and paid_date
    you would create a
    original_date_view as select * from calendar_lookup
    paid_date_view as select * from calendar_lookup
    these views could then be joined to the orginal_date and paid_date fields in your transaction table.
    In the universe you would then expose 2 classes, which contained the same objects.
    Original_date
    Date,
    Day,
    Month,
    Year
    etc
    Paid_date
    Date,
    Day,
    Month,
    Year
    etc
    If you are not using the lookup then you would have to code each date object based on the transaction date field
    So Day in orignal_date would be to_char(txn.original_date, "dd")
    while Day in Paid_date would be to_char(txn.paid_date, "dd")
    Hope this helps
    Alan

  • Having problems in creating a class with name File.

    I want to compile a new class with class name as File, i have made it part of a new package also but still i am getting this error
    "File.java:2: CustomFile.File is already defined in this compilation unit
    import java.io.File;
    ^
    File.java:6: cannot resolve symbol
    symbol : constructor File ()
    location: class java.io.File
    inFile = new java.io.File();
    ^
    2 errors"
    Here is the source code of the file:
    package CustomFile;
    import java.io.File;
    public class File {
    private java.io.File inFile;
    public File(){
         inFile = new java.io.File();
         System.out.println("hi file");
    }

    Any help is appreciated.
    I want to compile a new class with class name as File,
    i have made it part of a new package also but still i
    am getting this error
    "File.java:2: CustomFile.File is already defined in
    this compilation unit
    import java.io.File;
    ^
    File.java:6: cannot resolve symbol
    symbol : constructor File ()
    location: class java.io.File
    inFile = new java.io.File();
    ^
    2 errors"
    Here is the source code of the file:
    package CustomFile;
    import java.io.File;
    public class File {
    private java.io.File inFile;
    public File(){
         inFile = new java.io.File();
         System.out.println("hi file");

  • How do you correct the merging of contacts, calendars, etc with other members of your family on your account?

    How do you correct the merging of contacts, calendars, etc with other members of your family on your account?

    Wow!
    I'm not going to be of much use regarding answers but I sure am going to watching this post like a hawk for any replies. My package is a slightly diluted version of this and I do find the BBtalk and data limits hard to make the most of as well.
    If nothing else this totally highlights how complicated BT have managed to make their packages.
    A cynic would assume that they are trying to catch us out at every step and for us to either be overspending or not really getting the moneys worth.

Maybe you are looking for